mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-01-19 20:24:49 +00:00
Merge pull request #572 from JeffProgrammer/fix-material-editor
Fix local variable being eval'd in materialEditor
This commit is contained in:
commit
c003cad3d0
|
|
@ -1120,8 +1120,7 @@ function MaterialEditorGui::updateActiveMaterial(%this, %propertyField, %value,
|
|||
%action.isSlider = %isSlider;
|
||||
%action.onMouseUp = %onMouseUp;
|
||||
%action.newValue = %value;
|
||||
eval( "%action.oldValue = " @ MaterialEditorGui.currentMaterial @ "." @ %propertyField @ ";");
|
||||
%action.oldValue = "\"" @ %action.oldValue @ "\"";
|
||||
%action.oldValue = "\"" @ MaterialEditorGui.currentMaterial.getFieldValue(%propertyField) @ "\"";
|
||||
MaterialEditorGui.submitUndo( %action );
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue