godot/scene
Daniel Rakos a670c66457 Fix texture resource reload bug
If a non-imported texture resource file (e.g. DDS) gets updated the editor
doesn't reload it. The cause of the problem is two-fold:

First, the code of ImageTexture assumes that textures are always imported
from an image, but that's not the case for e.g. DDS. This change thus adds
code to issue a resource reload in case an image reload is not possible
(which is the case for non-imported texture resources).

Second, the code is filled with bogus calls to Image::get_image_data_size()
to determine the mipmap offset when that should be done using
Image::get_image_mipmap_offset(). Previous code literally passed the integer
mip level value to Image::get_image_data_size() where that actually expects
a boolean. Thus this part of the change might actually solve some other
issues as well.

To be pedantic, the texture_get_data() funciton of the rasterizer drivers is
still quite a mess, as it only ever returns the whole mipchain when
GLES_OVER_GL is set (practically only on desktop builds) but this change does
not attempt to resolve that.

(cherry picked from commit e34eb5c26c)
2019-07-17 09:49:34 +02:00
..
2d Revert "Fix AudioStreams::stop possibly causing a small noise" 2019-07-03 13:19:40 +02:00
3d Revert "Fix AudioStreams::stop possibly causing a small noise" 2019-07-03 13:19:40 +02:00
animation Added signal for Tween emitted at completion 2019-04-20 22:13:33 +02:00
audio Properly deal with clicking on audio stream change or stop (AudioStreamPlayer only) 2019-07-03 13:19:40 +02:00
gui Revert "Added the ability to change the default cursor property for the RichTextLabel component." 2019-04-23 16:01:16 +02:00
main Fix disable_3d=yes -Wunused-variable errors 2019-04-20 20:30:57 +02:00
resources Fix texture resource reload bug 2019-07-17 09:49:34 +02:00
register_scene_types.cpp Added height map shape that implement heightmap collision shape 2019-04-20 23:33:50 +02:00
register_scene_types.h Update copyright statements to 2019 2019-01-01 12:58:10 +01:00
scene_string_names.cpp -Fixes to undo redo to avoid crash, closes #24251 2019-02-14 10:22:34 -03:00
scene_string_names.h -Fixes to undo redo to avoid crash, closes #24251 2019-02-14 10:22:34 -03:00
SCsub Move Penner easing equations to thirdparty/misc 2018-09-28 16:01:26 +02:00