X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=org.simantics.g3d%2Fsrc%2Forg%2Fsimantics%2Fg3d%2Fproperty%2FAnnotatedPropertyTabContributorFactory.java;h=f5db540e81640a7082853e538e7aee28410219f8;hb=9d4b97ae81002cf1183032b4316a7a582eafe849;hp=21e773c1c82c2fdf4dbda2e91a3e59afdeb272ee;hpb=5c3e9116d5e5aefa51ec3caa3b0e42a4e983281f;p=simantics%2F3d.git diff --git a/org.simantics.g3d/src/org/simantics/g3d/property/AnnotatedPropertyTabContributorFactory.java b/org.simantics.g3d/src/org/simantics/g3d/property/AnnotatedPropertyTabContributorFactory.java index 21e773c1..f5db540e 100644 --- a/org.simantics.g3d/src/org/simantics/g3d/property/AnnotatedPropertyTabContributorFactory.java +++ b/org.simantics.g3d/src/org/simantics/g3d/property/AnnotatedPropertyTabContributorFactory.java @@ -748,7 +748,11 @@ public class AnnotatedPropertyTabContributorFactory implements PropertyTabContri PropertyItem item = (PropertyItem)element; if (tab.getManipulator(item).getValueCount() <= index) return false; - return (item.setter != null); + if (item.setter == null) + return false; + if (getValue(element) == null) + return false; + return true; } @Override