Ver Fonte

CDB: Fix rename col that change random types

lviguier há 5 meses atrás
pai
commit
7c2ab4c3e6
1 ficheiros alterados com 2 adições e 2 exclusões
  1. 2 2
      hide/comp/cdb/Editor.hx

+ 2 - 2
hide/comp/cdb/Editor.hx

@@ -1755,9 +1755,9 @@ class Editor extends Component {
 			if( col != null ) {
 				base.mapType(function(t) {
 					return switch( t ) {
-					case TRef(o) if( o.indexOf(col.name) >= 0 ):
+					case TRef(o) if( o.indexOf(col.name) >= 0 && o.indexOf('@') >= 0 ):
 						TRef(StringTools.replace(o, col.name, c.name));
-					case TLayer(o) if( o.indexOf(col.name) >= 0 ):
+					case TLayer(o) if( o.indexOf(col.name) >= 0 && o.indexOf('@') >= 0 ):
 						TLayer(StringTools.replace(o, col.name, c.name));
 					default:
 						t;