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:
authorSpivak Vladimir (cwolf3d) <cwolf3d@gmail.com>2019-11-23 16:14:08 +0300
committerSpivak Vladimir (cwolf3d) <cwolf3d@gmail.com>2019-11-23 16:14:08 +0300
commit58321c6ff89f1f0492aeee94064ece7a1983dc51 (patch)
treea5b785dbc10b2b61ab32864d1448cfb84cb3ddd9 /add_mesh_extra_objects/add_mesh_beam_builder.py
parentc23d2a741e21e6d5f926a21ffc9fb51b50c39191 (diff)
Fix T71025: add_mesh_gears: bpy.ops.object.mode_set.poll() failed
Diffstat (limited to 'add_mesh_extra_objects/add_mesh_beam_builder.py')
-rw-r--r--add_mesh_extra_objects/add_mesh_beam_builder.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/add_mesh_extra_objects/add_mesh_beam_builder.py b/add_mesh_extra_objects/add_mesh_beam_builder.py
index f40e945d..3f62437f 100644
--- a/add_mesh_extra_objects/add_mesh_beam_builder.py
+++ b/add_mesh_extra_objects/add_mesh_beam_builder.py
@@ -760,7 +760,8 @@ class addBeam(Operator):
def execute(self, context):
if bpy.context.mode == "OBJECT":
- if self.change == True and self.change != None:
+ if context.selected_objects != [] and context.active_object and \
+ ('Beam' in context.active_object.data.keys()) and (self.change == True):
obj = context.active_object
oldmesh = obj.data
oldmeshname = obj.data.name