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
502b3ba6
Commit
502b3ba6
authored
13 years ago
by
Brendon Murphy
Browse files
Options
Downloads
Patches
Plain Diff
quick fix for add_mesh_pyramid.py not registering in menu
parent
7b3950ad
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
add_mesh_extra_objects/__init__.py
+3
-3
3 additions, 3 deletions
add_mesh_extra_objects/__init__.py
add_mesh_extra_objects/add_mesh_pyramid.py
+6
-6
6 additions, 6 deletions
add_mesh_extra_objects/add_mesh_pyramid.py
with
9 additions
and
9 deletions
add_mesh_extra_objects/__init__.py
+
3
−
3
View file @
502b3ba6
...
...
@@ -22,8 +22,8 @@ bl_info = {
"
name
"
:
"
Extra Objects
"
,
"
author
"
:
"
Multiple Authors
"
,
"
version
"
:
(
0
,
3
),
"
blender
"
:
(
2
,
5
,
9
),
"
api
"
:
4
0638
,
"
blender
"
:
(
2
,
6
,
1
),
"
api
"
:
4
2524
,
"
location
"
:
"
View3D > Add > Mesh > Extra Objects
"
,
"
description
"
:
"
Add extra object types
"
,
"
warning
"
:
""
,
...
...
@@ -74,7 +74,7 @@ class INFO_MT_mesh_extras_add(bpy.types.Menu):
text
=
"
Polysphere
"
)
layout
.
operator
(
"
mesh.primitive_supertoroid_add
"
,
text
=
"
Supertoroid
"
)
layout
.
operator
(
"
mesh.prim
a
tive_step
_
pyramid_add
"
,
layout
.
operator
(
"
mesh.prim
i
tive_steppyramid_add
"
,
text
=
"
Pyramid
"
)
class
INFO_MT_mesh_gemstones_add
(
bpy
.
types
.
Menu
):
...
...
This diff is collapsed.
Click to expand it.
add_mesh_extra_objects/add_mesh_pyramid.py
+
6
−
6
View file @
502b3ba6
...
...
@@ -18,7 +18,7 @@
# ***** END GPL LICENCE BLOCK *****
# (c) 2011 Phil Cote (cotejrp1)
'''
bl_info = {
'
name
'
:
'
Mesh Pyramid
'
,
'
author
'
:
'
Phil Cote, cotejrp1, (http://www.blenderaddons.com)
'
,
...
...
@@ -29,7 +29,7 @@ bl_info = {
'
description
'
:
'
Create an egyption-style step pyramid
'
,
'
warning
'
:
''
, # used for warning icon and text in addons panel
'
category
'
:
'
Add Mesh
'
}
'''
import
bpy
from
bpy.props
import
IntProperty
,
FloatProperty
...
...
@@ -109,11 +109,10 @@ def add_pyramid_object(self, context):
res
=
add_object_data
(
context
,
mesh_data
,
operator
=
self
)
class
OBJECT_OT_add_p
yramid
(
bpy
.
types
.
Operator
,
AddObjectHelper
):
class
AddP
yramid
(
bpy
.
types
.
Operator
,
AddObjectHelper
):
"""
Add a Mesh Object
"""
bl_idname
=
"
mesh.step
_
pyramid_add
"
bl_idname
=
"
mesh.
primitive_
steppyramid_add
"
bl_label
=
"
Pyramid
"
bl_description
=
"
Create a Pyramid Mesh
"
bl_options
=
{
'
REGISTER
'
,
'
UNDO
'
}
initial_size
=
FloatProperty
(
name
=
"
Initial Size
"
,
default
=
2.0
,
...
...
@@ -136,7 +135,7 @@ class OBJECT_OT_add_pyramid(bpy.types.Operator, AddObjectHelper):
add_pyramid_object
(
self
,
context
)
return
{
'
FINISHED
'
}
'''
def menu_func(self, context):
self.layout.operator(OBJECT_OT_add_pyramid.bl_idname,
text=
"
Pyramid
"
, icon=
"
PLUGIN
"
)
...
...
@@ -153,3 +152,4 @@ def unregister():
if __name__ ==
"
__main__
"
:
register()
'''
\ No newline at end of file
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