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
7dfa3283
Commit
7dfa3283
authored
11 years ago
by
Campbell Barton
Browse files
Options
Downloads
Patches
Plain Diff
fbx import cycles roughness wasnt set correctly
parent
13fbfe74
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
io_scene_fbx/cycles_shader_compat.py
+3
-3
3 additions, 3 deletions
io_scene_fbx/cycles_shader_compat.py
with
3 additions
and
3 deletions
io_scene_fbx/cycles_shader_compat.py
+
3
−
3
View file @
7dfa3283
...
@@ -213,7 +213,7 @@ class CyclesShaderWrapper():
...
@@ -213,7 +213,7 @@ class CyclesShaderWrapper():
self
.
node_mix_shader_spec
.
inputs
[
1
])
# second 'Shader' slot
self
.
node_mix_shader_spec
.
inputs
[
1
])
# second 'Shader' slot
node
=
nodes
.
new
(
type
=
'
ShaderNodeMixRGB
'
)
node
=
nodes
.
new
(
type
=
'
ShaderNodeMixRGB
'
)
node
.
label
=
"
Mix Color/
Diffuse
"
node
.
label
=
"
Mix Color/
Spec
"
node
.
location
=
self
.
_grid_location
(
1
,
1
)
node
.
location
=
self
.
_grid_location
(
1
,
1
)
node
.
blend_type
=
'
MULTIPLY
'
node
.
blend_type
=
'
MULTIPLY
'
node
.
inputs
[
"
Fac
"
].
default_value
=
1.0
node
.
inputs
[
"
Fac
"
].
default_value
=
1.0
...
@@ -227,11 +227,11 @@ class CyclesShaderWrapper():
...
@@ -227,11 +227,11 @@ class CyclesShaderWrapper():
node
=
nodes
.
new
(
type
=
'
ShaderNodeMixRGB
'
)
node
=
nodes
.
new
(
type
=
'
ShaderNodeMixRGB
'
)
node
.
label
=
"
Mix Color/Hardness
"
node
.
label
=
"
Mix Color/Hardness
"
node
.
location
=
self
.
_grid_location
(
0
,
0
)
node
.
location
=
self
.
_grid_location
(
1
,
0
)
node
.
blend_type
=
'
MULTIPLY
'
node
.
blend_type
=
'
MULTIPLY
'
node
.
inputs
[
"
Fac
"
].
default_value
=
1.0
node
.
inputs
[
"
Fac
"
].
default_value
=
1.0
node
.
inputs
[
"
Color1
"
].
default_value
=
COLOR_WHITE
node
.
inputs
[
"
Color1
"
].
default_value
=
COLOR_WHITE
node
.
inputs
[
"
Color2
"
].
default_value
=
COLOR_
BLACK
node
.
inputs
[
"
Color2
"
].
default_value
=
COLOR_
WHITE
self
.
node_mix_color_hard
=
node
self
.
node_mix_color_hard
=
node
del
node
del
node
# Link
# Link
...
...
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