Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
blender-addons
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
blender
blender-addons
Commits
672cfe9c
Commit
672cfe9c
authored
4 years ago
by
Vladimir Spivak(cwolf3d)
Browse files
Options
Downloads
Patches
Plain Diff
Fixed errors in the console if obj.data is None
Errors appeared when calling the context menu on an object without data
parent
3b0a5df4
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
add_mesh_BoltFactory/Boltfactory.py
+1
-1
1 addition, 1 deletion
add_mesh_BoltFactory/Boltfactory.py
add_mesh_extra_objects/__init__.py
+1
-1
1 addition, 1 deletion
add_mesh_extra_objects/__init__.py
add_mesh_geodesic_domes/__init__.py
+1
-1
1 addition, 1 deletion
add_mesh_geodesic_domes/__init__.py
with
3 additions
and
3 deletions
add_mesh_BoltFactory/Boltfactory.py
+
1
−
1
View file @
672cfe9c
...
...
@@ -481,7 +481,7 @@ def Bolt_contex_menu(self, context):
obj
=
context
.
object
layout
=
self
.
layout
if
'
Bolt
'
in
obj
.
data
.
keys
():
if
obj
.
data
is
not
None
and
'
Bolt
'
in
obj
.
data
.
keys
():
props
=
layout
.
operator
(
"
mesh.bolt_add
"
,
text
=
"
Change Bolt
"
)
props
.
change
=
True
for
prm
in
BoltParameters
():
...
...
This diff is collapsed.
Click to expand it.
add_mesh_extra_objects/__init__.py
+
1
−
1
View file @
672cfe9c
...
...
@@ -249,7 +249,7 @@ def Extras_contex_menu(self, context):
obj
=
context
.
object
layout
=
self
.
layout
if
obj
==
None
:
if
obj
==
None
or
obj
.
data
is
None
:
return
if
'
Gear
'
in
obj
.
data
.
keys
():
...
...
This diff is collapsed.
Click to expand it.
add_mesh_geodesic_domes/__init__.py
+
1
−
1
View file @
672cfe9c
...
...
@@ -54,7 +54,7 @@ def Geodesic_contex_menu(self, context):
obj
=
context
.
object
layout
=
self
.
layout
if
'
GeodesicDome
'
in
obj
.
data
.
keys
():
if
obj
.
data
is
not
None
and
'
GeodesicDome
'
in
obj
.
data
.
keys
():
props
=
layout
.
operator
(
"
mesh.generate_geodesic_dome
"
,
text
=
"
Change Geodesic Dome
"
)
props
.
change
=
True
for
prm
in
third_domes_panel_271
.
GeodesicDomeParameters
():
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment