Commit Graph

16 Commits

Author SHA1 Message Date
f4d3e48be2 refactor: add 2 classes to refactor old code which raise too much erros by linter.
- add TinyMutex to resolve the issue that we can not operate the virtools group infos of 2 individual objects.
	* use this new class for all class need resource mutex, such as ballance element, bme materials and etc.
- add CollectionVisitor to resolve that blender have bad document and type hint for runtime bpy.types.CollectionProperty.
	* now all visit to CollectionProperty are delegated by this class.
2025-01-06 15:12:14 +08:00
cb893b770a feat: add light object support in importing virtools file.
- fix all `def poll(self)` to `def poll(cls)` to let it fit class method name convention.
- fix wrong progress counter when importing virtools file.
- add light support when importing virtools file.
- add corresponding conflict strategy and resolver for light.
2025-01-03 09:36:32 +08:00
84e7e8380f feat: hide some operators in edit mode and add some notify for grouping oper.
- now grouping, ungrouping clear groups operators will show a report at the bottom of blender to indicate their work have done.
- disable fix material, 3ds max align, select by virtools group operators in edit mode to prevent any possible undefined behavior.
2024-04-22 21:06:41 +08:00
997839a187 feat: select object after creation of floor, rail and component 2024-02-11 17:11:05 +08:00
77b15a8797 refactor EnumPropHelper to improve BME again. 2023-12-16 22:27:31 +08:00
a6de69c882 refactor BlenderEnumPropHelper 2023-12-15 21:57:50 +08:00
f6569313bf update component creation 2023-12-09 17:42:03 +08:00
ae9a848864 write shit 2023-12-06 17:16:31 +08:00
6944415912 finish naming convention converter 2023-11-29 21:35:15 +08:00
88fe1519e3 add name convention 2023-11-26 20:37:19 +08:00
1a2dd08092 update plugin.
- sync PyBMap work. use different library name in different OS.
- add BMap encoding default value according to different OS (Windows and non-Windows) because non-Windows OS, we use libiconv as encoding converter.
- move all pointer properties to a single module and give corresponding visitor.
- add shared importer exporter parameters module thus bmfile import/export also can ref it.
2023-11-16 22:41:03 +08:00
b7ad5c67d4 add virtools texture support 2023-11-11 13:32:58 +08:00
8fad643dd9 finish half of virtools importer 2023-11-09 21:41:26 +08:00
4f10b1a9e9 add placeholder for importer and exporter 2023-10-18 21:23:04 +08:00
354b3cd180 fix and add some functions 2023-10-16 10:12:05 +08:00
4f693b555d add virtools material basically 2023-10-11 22:24:22 +08:00