Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
blender-dev-tools
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-dev-tools
Commits
300d7843
Commit
300d7843
authored
6 years ago
by
Campbell Barton
Browse files
Options
Downloads
Patches
Plain Diff
bpy_introspect_ui: update for recent Blender
parent
14b7754b
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
utils_api/bpy_introspect_ui.py
+29
-6
29 additions, 6 deletions
utils_api/bpy_introspect_ui.py
with
29 additions
and
6 deletions
utils_api/bpy_introspect_ui.py
+
29
−
6
View file @
300d7843
...
@@ -205,13 +205,21 @@ class Menu(BaseFakeUI):
...
@@ -205,13 +205,21 @@ class Menu(BaseFakeUI):
def
draw_preset
(
self
,
context
):
def
draw_preset
(
self
,
context
):
pass
pass
def
path_menu
(
self
,
a
,
b
,
c
):
def
path_menu
(
self
,
searchpaths
,
operator
,
*
,
props_default
=
None
,
prop_filepath
=
"
filepath
"
,
filter_ext
=
None
,
filter_path
=
None
,
display_name
=
None
,
add_operator
=
None
):
pass
pass
@classmethod
@classmethod
def
draw_collapsible
(
cls
,
context
,
layout
):
def
draw_collapsible
(
cls
,
context
,
layout
):
cls
.
draw
_menus
(
layout
,
context
)
cls
.
draw
(
layout
,
context
)
@classmethod
def
is_extended
(
cls
):
return
False
class
Operator
(
BaseFakeUI
):
class
Operator
(
BaseFakeUI
):
pass
pass
...
@@ -228,6 +236,7 @@ def fake_main():
...
@@ -228,6 +236,7 @@ def fake_main():
# Registerable Subclasses
# Registerable Subclasses
bpy
.
types
=
module_add
(
"
bpy.types
"
)
bpy
.
types
=
module_add
(
"
bpy.types
"
)
bpy
.
types
.
Panel
=
Panel
bpy
.
types
.
Panel
=
Panel
bpy
.
types
.
Panel
.
is_popover
=
False
bpy
.
types
.
Header
=
Header
bpy
.
types
.
Header
=
Header
bpy
.
types
.
Menu
=
Menu
bpy
.
types
.
Menu
=
Menu
bpy
.
types
.
UIList
=
UIList
bpy
.
types
.
UIList
=
UIList
...
@@ -241,7 +250,7 @@ def fake_main():
...
@@ -241,7 +250,7 @@ def fake_main():
bpy
.
types
.
FreestyleLineStyle
=
type
(
"
FreestyleLineStyle
"
,
(),
{})
bpy
.
types
.
FreestyleLineStyle
=
type
(
"
FreestyleLineStyle
"
,
(),
{})
bpy
.
types
.
PoseBone
=
type
(
"
PoseBone
"
,
(),
{})
bpy
.
types
.
PoseBone
=
type
(
"
PoseBone
"
,
(),
{})
bpy
.
types
.
Material
=
type
(
"
Material
"
,
(),
{})
bpy
.
types
.
Material
=
type
(
"
Material
"
,
(),
{})
bpy
.
types
.
L
amp
=
type
(
"
L
amp
"
,
(),
{})
bpy
.
types
.
L
ight
=
type
(
"
L
ight
"
,
(),
{})
bpy
.
types
.
Camera
=
type
(
"
Camera
"
,
(),
{})
bpy
.
types
.
Camera
=
type
(
"
Camera
"
,
(),
{})
bpy
.
types
.
Curve
=
type
(
"
Curve
"
,
(),
{})
bpy
.
types
.
Curve
=
type
(
"
Curve
"
,
(),
{})
bpy
.
types
.
SurfaceCurve
=
type
(
"
SurfaceCurve
"
,
(),
{})
bpy
.
types
.
SurfaceCurve
=
type
(
"
SurfaceCurve
"
,
(),
{})
...
@@ -250,12 +259,17 @@ def fake_main():
...
@@ -250,12 +259,17 @@ def fake_main():
bpy
.
types
.
Mesh
=
type
(
"
Mesh
"
,
(),
{})
bpy
.
types
.
Mesh
=
type
(
"
Mesh
"
,
(),
{})
bpy
.
types
.
MetaBall
=
type
(
"
MetaBall
"
,
(),
{})
bpy
.
types
.
MetaBall
=
type
(
"
MetaBall
"
,
(),
{})
bpy
.
types
.
Object
=
type
(
"
Object
"
,
(),
{})
bpy
.
types
.
Object
=
type
(
"
Object
"
,
(),
{})
bpy
.
types
.
Sequence
=
type
(
"
Sequence
"
,
(),
{})
bpy
.
types
.
Speaker
=
type
(
"
Speaker
"
,
(),
{})
bpy
.
types
.
Speaker
=
type
(
"
Speaker
"
,
(),
{})
bpy
.
types
.
Texture
=
type
(
"
Texture
"
,
(),
{})
bpy
.
types
.
Texture
=
type
(
"
Texture
"
,
(),
{})
bpy
.
types
.
GreasePencil
=
type
(
"
GreasePencil
"
,
(),
{})
bpy
.
types
.
ParticleSettings
=
type
(
"
ParticleSettings
"
,
(),
{})
bpy
.
types
.
ParticleSettings
=
type
(
"
ParticleSettings
"
,
(),
{})
bpy
.
types
.
World
=
type
(
"
World
"
,
(),
{})
bpy
.
types
.
World
=
type
(
"
World
"
,
(),
{})
bpy
.
types
.
Theme
=
type
(
"
Theme
"
,
(),
{})
bpy
.
types
.
Theme
.
bl_rna
=
NewAttr
(
"
bpy.types.Theme.bl_rna
"
,
"
bl_rna
"
)
bpy
.
types
.
Brush
=
type
(
"
Brush
"
,
(),
{})
bpy
.
types
.
Brush
=
type
(
"
Brush
"
,
(),
{})
bpy
.
types
.
WindowManager
=
type
(
"
WindowManager
"
,
(),
{})
bpy
.
types
.
WindowManager
=
type
(
"
WindowManager
"
,
(),
{})
bpy
.
types
.
WorkSpace
=
type
(
"
WorkSpace
"
,
(),
{})
bpy
.
types
.
Scene
=
type
(
"
Scene
"
,
(),
{})
bpy
.
types
.
Scene
=
type
(
"
Scene
"
,
(),
{})
bpy
.
types
.
Scene
.
EnumProperty
=
NewAttr
(
"
bpy.types.Scene.EnumProperty
"
,
"
EnumProperty
"
)
bpy
.
types
.
Scene
.
EnumProperty
=
NewAttr
(
"
bpy.types.Scene.EnumProperty
"
,
"
EnumProperty
"
)
bpy
.
types
.
Scene
.
StringProperty
=
NewAttr
(
"
bpy.types.Scene.StringProperty
"
,
"
StringProperty
"
)
bpy
.
types
.
Scene
.
StringProperty
=
NewAttr
(
"
bpy.types.Scene.StringProperty
"
,
"
StringProperty
"
)
...
@@ -279,6 +293,9 @@ def fake_main():
...
@@ -279,6 +293,9 @@ def fake_main():
bpy
.
app
.
build_options
.
mod_fluid
=
True
bpy
.
app
.
build_options
.
mod_fluid
=
True
bpy
.
app
.
build_options
.
collada
=
True
bpy
.
app
.
build_options
.
collada
=
True
bpy
.
app
.
build_options
.
international
=
True
bpy
.
app
.
build_options
.
international
=
True
bpy
.
app
.
build_options
.
mod_smoke
=
True
bpy
.
app
.
build_options
.
alembic
=
True
bpy
.
app
.
build_options
.
bullet
=
True
bpy
.
app
.
translations
=
module_add
(
"
bpy.app.translations
"
)
bpy
.
app
.
translations
=
module_add
(
"
bpy.app.translations
"
)
bpy
.
app
.
translations
.
pgettext_iface
=
lambda
s
:
s
bpy
.
app
.
translations
.
pgettext_iface
=
lambda
s
:
s
...
@@ -293,6 +310,7 @@ def fake_main():
...
@@ -293,6 +310,7 @@ def fake_main():
bpy
.
utils
=
module_add
(
"
bpy.utils
"
)
bpy
.
utils
=
module_add
(
"
bpy.utils
"
)
bpy
.
utils
.
register_class
=
lambda
cls
:
()
bpy
.
utils
.
register_class
=
lambda
cls
:
()
bpy
.
utils
.
app_template_paths
=
lambda
:
()
def
fake_helper
():
def
fake_helper
():
...
@@ -320,12 +338,14 @@ def fake_runtime():
...
@@ -320,12 +338,14 @@ def fake_runtime():
bpy
.
data
=
module_add
(
"
bpy.data
"
)
bpy
.
data
=
module_add
(
"
bpy.data
"
)
bpy
.
data
.
scenes
=
()
bpy
.
data
.
scenes
=
()
bpy
.
data
.
speakers
=
()
bpy
.
data
.
speakers
=
()
bpy
.
data
.
group
s
=
()
bpy
.
data
.
collection
s
=
()
bpy
.
data
.
meshes
=
()
bpy
.
data
.
meshes
=
()
bpy
.
data
.
shape_keys
=
()
bpy
.
data
.
shape_keys
=
()
bpy
.
data
.
materials
=
()
bpy
.
data
.
materials
=
()
bpy
.
data
.
lattices
=
()
bpy
.
data
.
lattices
=
()
bpy
.
data
.
lamps
=
()
bpy
.
data
.
lights
=
()
bpy
.
data
.
lightprobes
=
()
bpy
.
data
.
fonts
=
()
bpy
.
data
.
textures
=
()
bpy
.
data
.
textures
=
()
bpy
.
data
.
cameras
=
()
bpy
.
data
.
cameras
=
()
bpy
.
data
.
curves
=
()
bpy
.
data
.
curves
=
()
...
@@ -336,8 +356,11 @@ def fake_runtime():
...
@@ -336,8 +356,11 @@ def fake_runtime():
bpy
.
data
.
armatures
=
()
bpy
.
data
.
armatures
=
()
bpy
.
data
.
particles
=
()
bpy
.
data
.
particles
=
()
bpy
.
data
.
grease_pencils
=
()
bpy
.
data
.
grease_pencils
=
()
bpy
.
data
.
cache_files
=
()
bpy
.
data
.
workspaces
=
()
bpy
.
data
.
is_dirty
=
True
bpy
.
data
.
is_dirty
=
True
bpy
.
data
.
is_saved
=
True
bpy
.
data
.
use_autopack
=
True
bpy
.
data
.
use_autopack
=
True
# defined in fake_main()
# defined in fake_main()
...
@@ -350,7 +373,7 @@ def fake_runtime():
...
@@ -350,7 +373,7 @@ def fake_runtime():
bpy
.
app
.
autoexec_fail
=
False
bpy
.
app
.
autoexec_fail
=
False
bpy
.
path
=
module_add
(
"
bpy.path
"
)
bpy
.
path
=
module_add
(
"
bpy.path
"
)
bpy
.
path
.
display_name
=
lambda
f
:
""
bpy
.
path
.
display_name
=
lambda
f
,
has_ext
=
False
:
""
bpy_extras
=
module_add
(
"
bpy_extras
"
)
bpy_extras
=
module_add
(
"
bpy_extras
"
)
bpy_extras
.
keyconfig_utils
=
module_add
(
"
bpy_extras.keyconfig_utils
"
)
bpy_extras
.
keyconfig_utils
=
module_add
(
"
bpy_extras.keyconfig_utils
"
)
...
...
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