Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'measureit')
-rw-r--r--measureit/measureit_main.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/measureit/measureit_main.py b/measureit/measureit_main.py
index c85de95d..4b40ac60 100644
--- a/measureit/measureit_main.py
+++ b/measureit/measureit_main.py
@@ -1344,7 +1344,7 @@ class AddLinkButton(Operator):
if o is None:
return False
else:
- if o.type == "MESH" or o.type == "EMPTY" or o.type == "CAMERA" or o.type == "LAMP":
+ if o.type == "MESH" or o.type == "EMPTY" or o.type == "CAMERA" or o.type == "LIGHT":
if bpy.context.mode == 'OBJECT':
return True
else:
@@ -1490,7 +1490,7 @@ class AddOriginButton(Operator):
if o is None:
return False
else:
- if o.type == "MESH" or o.type == "EMPTY" or o.type == "CAMERA" or o.type == "LAMP":
+ if o.type == "MESH" or o.type == "EMPTY" or o.type == "CAMERA" or o.type == "LIGHT":
if bpy.context.mode == 'OBJECT':
return True
else:
@@ -1892,7 +1892,7 @@ class AddNoteButton(Operator):
bpy.ops.object.empty_add(type='PLAIN_AXES')
myempty = bpy.data.objects[bpy.context.active_object.name]
myempty.location = bpy.context.scene.cursor_location
- myempty.empty_draw_size = 0.01
+ myempty.empty_display_size = 0.01
myempty.name = "Annotation"
# Add properties
scene = context.scene