mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-15 16:44:36 +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
1 changed files with 1 additions and 2 deletions
|
|
@ -1120,8 +1120,7 @@ function MaterialEditorGui::updateActiveMaterial(%this, %propertyField, %value,
|
||||||
%action.isSlider = %isSlider;
|
%action.isSlider = %isSlider;
|
||||||
%action.onMouseUp = %onMouseUp;
|
%action.onMouseUp = %onMouseUp;
|
||||||
%action.newValue = %value;
|
%action.newValue = %value;
|
||||||
eval( "%action.oldValue = " @ MaterialEditorGui.currentMaterial @ "." @ %propertyField @ ";");
|
%action.oldValue = "\"" @ MaterialEditorGui.currentMaterial.getFieldValue(%propertyField) @ "\"";
|
||||||
%action.oldValue = "\"" @ %action.oldValue @ "\"";
|
|
||||||
MaterialEditorGui.submitUndo( %action );
|
MaterialEditorGui.submitUndo( %action );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue