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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
blender
blender-addons
Commits
dbb54eee
Commit
dbb54eee
authored
Apr 29, 2016
by
Sandy Carter
Committed by
Bastien Montagne
Apr 29, 2016
Browse files
Options
Downloads
Patches
Plain Diff
Enable material transparency when its alpha is below 1.0.
Differential Revision:
https://developer.blender.org/D1934
parent
fb768079
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
io_scene_fbx/__init__.py
+1
-1
1 addition, 1 deletion
io_scene_fbx/__init__.py
io_scene_fbx/import_fbx.py
+3
-0
3 additions, 0 deletions
io_scene_fbx/import_fbx.py
with
4 additions
and
1 deletion
io_scene_fbx/__init__.py
+
1
−
1
View file @
dbb54eee
...
@@ -21,7 +21,7 @@
...
@@ -21,7 +21,7 @@
bl_info
=
{
bl_info
=
{
"
name
"
:
"
FBX format
"
,
"
name
"
:
"
FBX format
"
,
"
author
"
:
"
Campbell Barton, Bastien Montagne, Jens Restemeier
"
,
"
author
"
:
"
Campbell Barton, Bastien Montagne, Jens Restemeier
"
,
"
version
"
:
(
3
,
7
,
2
),
"
version
"
:
(
3
,
7
,
3
),
"
blender
"
:
(
2
,
77
,
0
),
"
blender
"
:
(
2
,
77
,
0
),
"
location
"
:
"
File > Import-Export
"
,
"
location
"
:
"
File > Import-Export
"
,
"
description
"
:
"
FBX IO meshes, UV
'
s, vertex colors, materials, textures, cameras, lamps and actions
"
,
"
description
"
:
"
FBX IO meshes, UV
'
s, vertex colors, materials, textures, cameras, lamps and actions
"
,
...
...
This diff is collapsed.
Click to expand it.
io_scene_fbx/import_fbx.py
+
3
−
0
View file @
dbb54eee
...
@@ -1305,6 +1305,9 @@ def blen_read_material(fbx_tmpl, fbx_obj, settings):
...
@@ -1305,6 +1305,9 @@ def blen_read_material(fbx_tmpl, fbx_obj, settings):
ma
.
diffuse_color
=
ma_diff
ma
.
diffuse_color
=
ma_diff
ma
.
specular_color
=
ma_spec
ma
.
specular_color
=
ma_spec
ma
.
alpha
=
ma_alpha
ma
.
alpha
=
ma_alpha
if
ma_alpha
<
1.0
:
ma
.
use_transparency
=
True
ma
.
transparency_method
=
'
RAYTRACE
'
ma
.
specular_intensity
=
ma_spec_intensity
ma
.
specular_intensity
=
ma_spec_intensity
ma
.
specular_hardness
=
ma_spec_hardness
*
5.10
+
1.0
ma
.
specular_hardness
=
ma_spec_hardness
*
5.10
+
1.0
...
...
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