Blender_bevy_components_workflow icon indicating copy to clipboard operation
Blender_bevy_components_workflow copied to clipboard

Custom Properties are only imported from objects

Open spooky-th-ghost opened this issue 2 years ago • 5 comments
trafficstars

Don't know if this is out of scope for this project, but while integrating i've found that Custom Properties are only imported on an object level, it doesn't appear it's possible to have a struct be placed directly on the entity that contains the Mesh component when loading a GLTF scene

spooky-th-ghost avatar Aug 11 '23 23:08 spooky-th-ghost

I haven't run into this myself, but maybe it's related to https://github.com/bevyengine/bevy/issues/4823?

GitGhillie avatar Aug 17 '23 21:08 GitGhillie

Sorry it took me so long to answer: I think the problem is double:

  • the custom properties are only exported at Object level from Blender
  • I think the Bevy issue linked by @GitGhillie would also prevent it from working on the Bevy side.

kaosat-dev avatar Sep 28 '23 14:09 kaosat-dev

@spooky-th-ghost & @GitGhillie , this might be an older issue, but I realized recently that what I said back then is totally false!

  • Blender does export custom properties in gltf files at various levels (scenes, materials). I could have sworn this was not the case in older versions, but I stand corrected
  • It would really solve issues if we could support components on any entity ( it would also reduce some of the workaround done in the code in this repo)
  • the issue comes 100% from the issue @GitGhillie mentioned: depending on the feedback there, I will likely submit a PR at Bevy level.
  • I can also confirm that

kaosat-dev avatar Mar 12 '24 13:03 kaosat-dev

Pr for Bevy is out https://github.com/bevyengine/bevy/pull/13453

kaosat-dev avatar May 22 '24 19:05 kaosat-dev

Awesome, that will make it 100x easier to explain to people how to convert meshes to colliders when using rapier/xpbd + Blender_bevy_components_workflow

GitGhillie avatar May 22 '24 20:05 GitGhillie