summaryrefslogtreecommitdiff
path: root/modules/fbx/data/fbx_material.h
diff options
context:
space:
mode:
authorGordon MacPherson <gordon@gordonite.tech>2020-12-30 09:56:49 +0000
committerGordon MacPherson <gordon@gordonite.tech>2021-01-26 19:48:18 +0000
commit86c7faa169a2d11be7ea3c83ae833ffba0660556 (patch)
tree098bce42aa4f6e889825fbdae82890c595c3bf9b /modules/fbx/data/fbx_material.h
parentfa498f6105bb18a038210f4c000e1a97b7c86354 (diff)
Fix zero scaling and material mappings being mapped to wrong fields
- fixes scale values of 0.0013 (det == 0.00004) not rendering, they should render even at small values, but not at zero like the editor grid plugin supplies zero exactly. - fixes node_3d_editor_plugin visibility bug when scale is zero - fix culling with small scaling values - which are still valid to be rendered like 0.00004 note: grid is still not fixed, it has det == 0 issues but this fixes one of them.
Diffstat (limited to 'modules/fbx/data/fbx_material.h')
-rw-r--r--modules/fbx/data/fbx_material.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/modules/fbx/data/fbx_material.h b/modules/fbx/data/fbx_material.h
index e974a256f6..23310b8e1d 100644
--- a/modules/fbx/data/fbx_material.h
+++ b/modules/fbx/data/fbx_material.h
@@ -217,9 +217,6 @@ struct FBXMaterial : public Reference {
{ "TransparencyFactor", PROPERTY_DESC_TRANSPARENT },
{ "Maya|opacity", PROPERTY_DESC_TRANSPARENT },
- /* Metallic */
- { "Shininess", PROPERTY_DESC_METALLIC },
- { "Reflectivity", PROPERTY_DESC_METALLIC },
{ "Maya|metalness", PROPERTY_DESC_METALLIC },
{ "Maya|metallic", PROPERTY_DESC_METALLIC },
@@ -241,6 +238,8 @@ struct FBXMaterial : public Reference {
{ "Maya|emissionColor", PROPERTY_DESC_EMISSIVE_COLOR },
/* Ignore */
+ { "Shininess", PROPERTY_DESC_IGNORE },
+ { "Reflectivity", PROPERTY_DESC_IGNORE },
{ "Maya|diffuseRoughness", PROPERTY_DESC_IGNORE },
{ "Maya", PROPERTY_DESC_IGNORE },
{ "Diffuse", PROPERTY_DESC_ALBEDO_COLOR },