Commit Graph

17 Commits

Author SHA1 Message Date
Relintai c62297108f Clang format. 2020-04-10 14:00:09 +02:00
Relintai a1f57d9f86 Fix build for 4.0. 2020-04-09 12:38:21 +02:00
Relintai 3bff55b393 Updated the license for 2020, also added the license text to all cpp files and fixed a copy-paste typo. 2020-01-31 19:43:20 +01:00
Relintai 8d3b160f02 Clang format. 2020-01-09 04:29:45 +01:00
Relintai 604c330188 Added a new getter. 2019-11-08 09:18:55 +01:00
Relintai 9cbc2ac85b Removed the texture_added signal/vmethod calls from TextureMerger::set_textures, because has_method always returns false in that context. 2019-10-23 17:17:45 +02:00
Relintai 1e0da8f335 Added an ERR_FAIL_COND into TexturePacker::add_texture. Aléso fixed an issue from the previous few commits with variables in scope in TextureMerger. 2019-10-23 17:10:57 +02:00
Relintai 5d28f6fc1e Now automatic merge in TextureMerger will create your atlases on the next update (_process). Also now it works even if you manipulate the textures directly with the API. 2019-10-23 16:54:28 +02:00
Relintai cb177e1d3f Added a texture_removed signal, and _texture_removed vmethod. The unref_texture, and unref_texture_index functions now return wether the texture actually got removed.
Also fixed missing PropertyInfo from the texture_added signal.
2019-10-23 16:30:41 +02:00
Relintai 9de8c209f1 texture_added and _texture_added will only be called if an addition actually occurs. (Refcount increases won't count as addition). 2019-10-23 16:08:12 +02:00
Relintai 4bdea3cc56 TextureMerger's set_textures will now clean up textures in the packer properly. 2019-10-23 16:03:59 +02:00
Relintai 7804575cf6 Both automatic_merge and keep_original_atlases in TextureMerger is false by default now. 2019-10-23 16:01:20 +02:00
Relintai ff60ad4207 Added a "texture_added" signal, and the 2 signals are also available as vmethods now. 2019-10-23 16:00:09 +02:00
Relintai c9cef93510 Added missing editor_hint check. 2019-10-22 01:07:53 +02:00
Relintai 63b908afb6 Added "automatic_merge" property, and a "texture_merged" signal. 2019-10-22 01:00:39 +02:00
Relintai 8f19801eaa Added a variant vector binding to TextureMerger. It will merge all textures on set. Added contains_texture to TexturePacker. Logic fixes in querying textures in TexturePacker. 2019-10-22 00:52:59 +02:00
Relintai 95fbb4668b Added a TextureMerger Node. 2019-10-22 00:17:11 +02:00