[Bf-blender-cvs] [da25748be7e] master: Python Templates: Fix Operator Mesh Add

Dalai Felinto noreply at git.blender.org
Fri Jun 28 14:57:35 CEST 2019


Commit: da25748be7e7c55cff30d424f9e6922a9b186770
Author: Dalai Felinto
Date:   Fri Jun 28 09:24:35 2019 -0300
Branches: master
https://developer.blender.org/rBda25748be7e7c55cff30d424f9e6922a9b186770

Python Templates: Fix Operator Mesh Add

This was broken since: 06fe2a5e0c5d6202864701cf7fd800e4906057c9

===================================================================

M	release/scripts/templates_py/operator_mesh_add.py

===================================================================

diff --git a/release/scripts/templates_py/operator_mesh_add.py b/release/scripts/templates_py/operator_mesh_add.py
index 39402ab1c6b..d3df64a5501 100644
--- a/release/scripts/templates_py/operator_mesh_add.py
+++ b/release/scripts/templates_py/operator_mesh_add.py
@@ -1,6 +1,6 @@
 import bpy
 import bmesh
-
+from bpy_extras.object_utils import AddObjectHelper
 
 def add_box(width, height, depth):
     """
@@ -38,6 +38,7 @@ def add_box(width, height, depth):
 from bpy.props import (
     BoolProperty,
     BoolVectorProperty,
+    EnumProperty,
     FloatProperty,
     FloatVectorProperty,
 )



More information about the Bf-blender-cvs mailing list