Commit Graph

15 Commits

Author SHA1 Message Date
4830687056 Fix compile for older versions of the engine than 3.x. 2021-08-29 18:56:09 +02:00
8488a033db Temporarily set MeshDataInstance's portal mode to PORTAL_MODE_GLOBAL on creation. This disables portal culling for it by default, as it turns out portal culling doesn't work with custom (and even some built in engine class) GeometryInstances yet. 2021-08-14 16:57:29 +02:00
dfd8e93965 MeshDataInstance now inherits from GeometryInstance. This way the portal culling system recognizes them on room conversion. They still don't get turned on/off properly yet. 2021-08-14 15:15:21 +02:00
b66b9c5ba9 Now MeshDataInstance inherits from VisualInstance. 2021-08-14 13:44:35 +02:00
8f9becba0e Removed get_substitute_for_room. It will not be needed. 2021-08-14 12:18:17 +02:00
d1a5bbf2a0 Added a method to MeshDataInstance that can return a substitute MeshInstance. 2021-08-13 22:56:05 +02:00
4595d4abee Fix moving MeshDataInstance even when only it's parent is moved. 2021-08-12 20:25:03 +02:00
2a2b2ae31a Reworked MeshDataInstance now it's using the VisualServer directly instead of it being inherited from MeshInstance. now it's a lot more reliable. 2021-08-10 18:37:46 +02:00
efb1d42957 Tiny improvement to mesh data intance's logic. 2021-08-10 18:07:43 +02:00
2cb2d2e558 Reworked setup mesh in MeshDataInstance. Now it's called refresh, it's bound, and it's always callable. This should fix most of the current annoyances with the class. 2021-03-23 11:21:24 +01:00
5b9617bfaa Fix compile for 4.0. 2021-02-06 11:51:02 +01:00
a9bab9896d Fix compile for 4.0. 2020-07-29 00:02:05 +02:00
85417ebee9 Improved MeshDataInstance, and PropDataMeshData will create a material in _processor_get_node_for. 2020-07-05 23:09:23 +02:00
eb3c654998 Finished up MeshDataInstance. 2020-07-05 12:18:00 +02:00
95b565e2a4 Added a MeshDataInstance node. 2020-06-27 21:44:45 +02:00