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
c966810c
Commit
c966810c
authored
8 years ago
by
meta-androcto
Browse files
Options
Downloads
Patches
Plain Diff
advanced objects aggregate mesh update
parent
83bdf81f
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
add_advanced_objects/add_mesh_aggregate.py
+27
-9
27 additions, 9 deletions
add_advanced_objects/add_mesh_aggregate.py
with
27 additions
and
9 deletions
add_advanced_objects/add_mesh_aggregate.py
+
27
−
9
View file @
c966810c
...
@@ -71,11 +71,6 @@ class OBJECT_OT_agregate_mesh(Operator):
...
@@ -71,11 +71,6 @@ class OBJECT_OT_agregate_mesh(Operator):
"
Needs at least two selected Mesh objects
"
)
"
Needs at least two selected Mesh objects
"
)
bl_options
=
{
'
REGISTER
'
,
'
UNDO
'
,
'
PRESET
'
}
bl_options
=
{
'
REGISTER
'
,
'
UNDO
'
,
'
PRESET
'
}
updateMeNow
=
BoolProperty
(
name
=
"
Update
"
,
description
=
"
Update
"
,
default
=
True
)
volX
=
FloatProperty
(
volX
=
FloatProperty
(
name
=
"
Volume X
"
,
name
=
"
Volume X
"
,
min
=
0.1
,
max
=
25
,
min
=
0.1
,
max
=
25
,
...
@@ -158,10 +153,28 @@ class OBJECT_OT_agregate_mesh(Operator):
...
@@ -158,10 +153,28 @@ class OBJECT_OT_agregate_mesh(Operator):
description
=
"
Sort faces so you can regrow with Build Modifier, materials are lost
"
description
=
"
Sort faces so you can regrow with Build Modifier, materials are lost
"
)
)
refresh
=
bpy
.
props
.
BoolProperty
(
name
=
"
Update
"
,
default
=
False
)
auto_refresh
=
bpy
.
props
.
BoolProperty
(
name
=
"
Auto
"
,
description
=
"
Auto update spline
"
,
default
=
False
)
def
draw
(
self
,
context
):
def
draw
(
self
,
context
):
layout
=
self
.
layout
layout
=
self
.
layout
col
=
layout
.
column
(
align
=
True
)
col
=
layout
.
column
(
align
=
True
)
col
.
prop
(
self
,
"
updateMeNow
"
,
toggle
=
True
)
row
=
col
.
row
(
align
=
True
)
if
self
.
auto_refresh
is
False
:
self
.
refresh
=
False
elif
self
.
auto_refresh
is
True
:
self
.
refresh
=
True
row
.
prop
(
self
,
'
auto_refresh
'
,
toggle
=
True
,
icon
=
'
AUTO
'
)
row
.
prop
(
self
,
'
refresh
'
,
toggle
=
True
,
icon
=
'
FILE_REFRESH
'
)
col
=
layout
.
column
(
align
=
True
)
col
.
separator
()
col
.
separator
()
col
=
layout
.
column
(
align
=
True
)
col
=
layout
.
column
(
align
=
True
)
...
@@ -195,11 +208,11 @@ class OBJECT_OT_agregate_mesh(Operator):
...
@@ -195,11 +208,11 @@ class OBJECT_OT_agregate_mesh(Operator):
return
(
len
(
bpy
.
context
.
selected_objects
)
>
1
and
bpy
.
context
.
object
.
type
==
'
MESH
'
)
return
(
len
(
bpy
.
context
.
selected_objects
)
>
1
and
bpy
.
context
.
object
.
type
==
'
MESH
'
)
def
invoke
(
self
,
context
,
event
):
def
invoke
(
self
,
context
,
event
):
self
.
updateMeNow
=
True
self
.
refresh
=
True
return
self
.
execute
(
context
)
return
self
.
execute
(
context
)
def
execute
(
self
,
context
):
def
execute
(
self
,
context
):
if
not
self
.
updateMeNow
:
if
not
self
.
refresh
:
return
{
'
PASS_THROUGH
'
}
return
{
'
PASS_THROUGH
'
}
scn
=
bpy
.
context
.
scene
scn
=
bpy
.
context
.
scene
...
@@ -303,6 +316,11 @@ class OBJECT_OT_agregate_mesh(Operator):
...
@@ -303,6 +316,11 @@ class OBJECT_OT_agregate_mesh(Operator):
obj
.
select
=
True
obj
.
select
=
True
if
self
.
auto_refresh
is
False
:
self
.
refresh
=
False
#elif self.auto_refresh is True:
# self.refresh = True
return
{
'
FINISHED
'
}
return
{
'
FINISHED
'
}
...
@@ -315,4 +333,4 @@ def unregister():
...
@@ -315,4 +333,4 @@ def unregister():
if
__name__
==
'
__main__
'
:
if
__name__
==
'
__main__
'
:
register
()
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