Skip to content

Commit eea0e41

Browse files
committed
move files
1 parent acc66e1 commit eea0e41

File tree

13 files changed

+10
-17
lines changed

13 files changed

+10
-17
lines changed

src/compas_viewer/components/boundcomponent.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,6 @@ def _check_for_changes(self):
163163
self._last_watched_value = current_value
164164
self._updating_from_watch = True
165165
try:
166-
print("sync from bound object", self.obj, self.attr)
167166
self.sync_from_bound_object(current_value)
168167
finally:
169168
self._updating_from_watch = False

src/compas_viewer/components/camerasetting.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def _update_camera(*args):
7979
self.far = NumberEdit(camera, "far", title="Far Plane", min_val=10.0, max_val=10000.0, action=_update_camera)
8080
self.scale = NumberEdit(camera, "scale", title="Scale", min_val=0.1, max_val=10.0, action=_update_camera)
8181
self.zoomdelta = NumberEdit(camera, "zoomdelta", title="Zoom Delta", min_val=0.001, max_val=1.0, action=_update_camera)
82-
self.rotationdelta = NumberEdit(camera, "rotationdelta", title="Rotation Delta", min_val=0.001, max_val=1.0, action=_update_camera)
82+
self.rotationdelta = NumberEdit(camera, "rotationdelta", title="Rotation Delta", step=0.01, decimals=2, min_val=0.001, max_val=1.0, action=_update_camera)
8383
self.pandelta = NumberEdit(camera, "pandelta", title="Pan Delta", min_val=0.001, max_val=1.0, action=_update_camera)
8484

8585
# Add components to the form
File renamed without changes.
File renamed without changes.

src/compas_viewer/components/objectsetting.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,13 @@ def _update_sceneform(*arg):
5757
if hasattr(obj, "show_faces"):
5858
self.add(BooleanToggle(obj=obj, attr="show_faces", action=_update_obj_settings))
5959

60-
if hasattr(obj, "pointcolor"):
60+
if hasattr(obj, "pointcolor") and obj.pointcolor is not None:
6161
self.add(ColorPicker(obj=obj, attr="pointcolor", action=_update_obj_settings))
6262

63-
if hasattr(obj, "linecolor"):
63+
if hasattr(obj, "linecolor") and obj.linecolor is not None:
6464
self.add(ColorPicker(obj=obj, attr="linecolor", action=_update_obj_settings))
6565

66-
if hasattr(obj, "facecolor"):
66+
if hasattr(obj, "facecolor") and obj.facecolor is not None:
6767
self.add(ColorPicker(obj=obj, attr="facecolor", action=_update_obj_settings))
6868

6969
if hasattr(obj, "linewidth"):
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)