Main repository of MikuMikuStudio
修订版 | 14c932f3add5eb74205c15798f58a3bf9f5e6111 (tree) |
---|---|
时间 | 2013-06-30 05:24:19 |
作者 | normen667 <normen667@75d0...> |
Commiter | normen667 |
SDK:
- fix issue in SDK scene property sync
git-svn-id: http://jmonkeyengine.googlecode.com/svn/trunk@10693 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
@@ -124,7 +124,7 @@ public class SceneExplorerProperty<T> extends PropertySupport.Reflection<T> { | ||
124 | 124 | di.setEditor(valueType, this); |
125 | 125 | } |
126 | 126 | //TODO: instantiates editor? |
127 | - editable = getPropertyEditor() != null; | |
127 | + editable = this.canWrite(); | |
128 | 128 | logger.log(Level.FINE, "Created SceneExplorerProperty for {0},\n cloneable = {1},\n instantiatable = {2},\n primitive = {3},\n editable = {4}", new Object[]{valueType, cloneable, instantiable, primitive, editable}); |
129 | 129 | addPropertyChangeListener(listener); |
130 | 130 | } |
@@ -134,9 +134,6 @@ public class SceneExplorerProperty<T> extends PropertySupport.Reflection<T> { | ||
134 | 134 | * thread. |
135 | 135 | */ |
136 | 136 | public void syncValue() { |
137 | - if (!editable) { | |
138 | - return; | |
139 | - } | |
140 | 137 | final T realValue = getSuperValue(); |
141 | 138 | mutex.readAccess(new Runnable() { |
142 | 139 | public void run() { |