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
dbb224a6
Commit
dbb224a6
authored
6 years ago
by
Stephen Leger
Browse files
Options
Downloads
Patches
Plain Diff
archipack 2.8 fix issue #T58698 (event TIMER_REPORT)
parent
a77bee47
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
archipack/archipack_thumbs.py
+10
-5
10 additions, 5 deletions
archipack/archipack_thumbs.py
archipack/archipack_wall2.py
+1
-1
1 addition, 1 deletion
archipack/archipack_wall2.py
with
11 additions
and
6 deletions
archipack/archipack_thumbs.py
+
10
−
5
View file @
dbb224a6
...
...
@@ -42,7 +42,7 @@ def create_lamp(context, loc):
lamp
=
context
.
active_object
lamp
.
data
.
use_nodes
=
True
tree
=
lamp
.
data
.
node_tree
return
tree
,
tree
.
nodes
return
tree
,
tree
.
nodes
,
lamp
.
data
def
create_camera
(
context
,
loc
,
rot
):
...
...
@@ -119,7 +119,10 @@ def generateThumb(context, cls, preset, engine):
elif
engine
==
'
BLENDER_EEVEE
'
:
eevee
=
context
.
scene
.
eevee
eevee
.
use_gtao
=
True
eevee
.
use_ssr
=
True
eevee
.
use_soft_shadows
=
True
eevee
.
taa_render_samples
=
64
else
:
raise
RuntimeError
(
"
Unsupported render engine %s
"
%
engine
)
...
...
@@ -150,6 +153,7 @@ def generateThumb(context, cls, preset, engine):
o
.
select_set
(
state
=
True
)
bpy
.
ops
.
view3d
.
camera_to_view_selected
()
cam
.
data
.
lens
=
45
log
(
"
Prepare scene
"
)
# add plane
...
...
@@ -164,17 +168,18 @@ def generateThumb(context, cls, preset, engine):
apply_simple_material
(
p
,
"
Plane
"
,
(
1
,
1
,
1
,
1
))
# add 3 lights
tree
,
nodes
=
create_lamp
(
context
,
(
3.69736
,
-
7
,
6.0
))
tree
,
nodes
,
lamp
=
create_lamp
(
context
,
(
3.69736
,
-
7
,
6.0
))
lamp
.
energy
=
50
emit
=
nodes
[
"
Emission
"
]
emit
.
inputs
[
1
].
default_value
=
2000.0
tree
,
nodes
=
create_lamp
(
context
,
(
9.414563179016113
,
5.446230888366699
,
5.903861999511719
))
tree
,
nodes
,
lamp
=
create_lamp
(
context
,
(
9.414563179016113
,
5.446230888366699
,
5.903861999511719
))
emit
=
nodes
[
"
Emission
"
]
falloff
=
nodes
.
new
(
type
=
"
ShaderNodeLightFalloff
"
)
falloff
.
inputs
[
0
].
default_value
=
5
tree
.
links
.
new
(
falloff
.
outputs
[
2
],
emit
.
inputs
[
1
])
tree
,
nodes
=
create_lamp
(
context
,
(
-
7.847615718841553
,
1.03135085105896
,
5.903861999511719
))
tree
,
nodes
,
lamp
=
create_lamp
(
context
,
(
-
7.847615718841553
,
1.03135085105896
,
5.903861999511719
))
emit
=
nodes
[
"
Emission
"
]
falloff
=
nodes
.
new
(
type
=
"
ShaderNodeLightFalloff
"
)
falloff
.
inputs
[
0
].
default_value
=
5
...
...
This diff is collapsed.
Click to expand it.
archipack/archipack_wall2.py
+
1
−
1
View file @
dbb224a6
...
...
@@ -2100,7 +2100,7 @@ class ARCHIPACK_OT_wall2_draw(ArchipackDrawTool, Operator):
def
modal
(
self
,
context
,
event
):
context
.
area
.
tag_redraw
()
if
event
.
type
in
{
'
NONE
'
,
'
TIMER
'
,
'
EVT_TWEAK_L
'
,
'
WINDOW_DEACTIVATE
'
}:
if
event
.
type
in
{
'
NONE
'
,
'
TIMER
'
,
'
TIMER_REPORT
'
,
'
EVT_TWEAK_L
'
,
'
WINDOW_DEACTIVATE
'
}:
return
{
'
PASS_THROUGH
'
}
if
self
.
keymap
.
check
(
event
,
self
.
keymap
.
delete
):
...
...
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