Commit Graph

11 Commits

Author SHA1 Message Date
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
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
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
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
4bdea3cc56 TextureMerger's set_textures will now clean up textures in the packer properly. 2019-10-23 16:03:59 +02:00
7804575cf6 Both automatic_merge and keep_original_atlases in TextureMerger is false by default now. 2019-10-23 16:01:20 +02:00
ff60ad4207 Added a "texture_added" signal, and the 2 signals are also available as vmethods now. 2019-10-23 16:00:09 +02:00
c9cef93510 Added missing editor_hint check. 2019-10-22 01:07:53 +02:00
63b908afb6 Added "automatic_merge" property, and a "texture_merged" signal. 2019-10-22 01:00:39 +02:00
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
95fbb4668b Added a TextureMerger Node. 2019-10-22 00:17:11 +02:00