Cache materials in gltf as the abstract class of Material
Use the abstract material class instead of BaseMaterial3D. This allows inserting ShaderMaterials into gltf. Like in VRM.
This commit is contained in:
@@ -66,7 +66,7 @@
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_materials">
|
||||
<return type="BaseMaterial3D[]" />
|
||||
<return type="Material[]" />
|
||||
<description>
|
||||
</description>
|
||||
</method>
|
||||
@@ -169,7 +169,7 @@
|
||||
</method>
|
||||
<method name="set_materials">
|
||||
<return type="void" />
|
||||
<param index="0" name="materials" type="BaseMaterial3D[]" />
|
||||
<param index="0" name="materials" type="Material[]" />
|
||||
<description>
|
||||
</description>
|
||||
</method>
|
||||
|
||||
Reference in New Issue
Block a user