Scirra / Construct-bugs

Public bug report submissions for Construct 3 and Construct Animate. Please read the guidelines then click the 'Issues' tab to get started.
https://www.construct.net
107 stars 83 forks source link

Pasting images and then resizing in animations editor deletes the pasted image #4777

Closed ChromeWisp closed 3 years ago

ChromeWisp commented 3 years ago

Problem description

In the animations editor, when resizing the image canvas after pasting a copied image, the pasted image will be erased.

Attach a .c3p

SpritePasteResizeLoss.zip

Steps to reproduce

  1. Open the attached project or create a new one and add a new sprite.
  2. Open the sprite in the animations editor.
  3. Use the rectangle select tool to copy part of the image and paste it elsewhere in the canvas (or on a new animation frame, or on the art of a different sprite).
  4. Press the resize button and hit okay in the Resize Image Canvas window.
  5. Note that your pasted image is now gone/erased/deleted/removed.

Observed result

Pasted imagery in the animations editor disappeared when resizing the canvas after pasting it.

Expected result

Resizing the image canvas after pasting an image does not erase the pasted image.

More details

Affected browsers/platforms: Firefox, Chrome.

First affected release: r241.

System details

View details Platform information Browser: Firefox Browser version: 88.0 Browser engine: Gecko Browser architecture: 64-bit Context: browser Operating system: Windows Operating system version: 10 Operating system architecture: 64-bit Device type: desktop Device pixel ratio: 1 Logical CPU cores: 6 Approx. device memory: (unavailable) User agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:88.0) Gecko/20100101 Firefox/88.0 C3 release: r241 (stable) Language setting: en-US Local storage Storage quota (approx): 2 gb Storage usage (approx): 423 kb (0%) Persistant storage: Yes Browser support notes This list contains missing features that are not required, but could improve performance or user experience if supported. Rendering multiple on-screen Layout Views is slow in Firefox due to bug 1163426 The element is not supported. A polyfill is in use. The Clipboard API is not supported. Some clipboard features may be unavailable. ImageBitmapOptions is not supported. Texture loading performance may be degraded. Determining input device capabilities is not supported. WebGL information Version string: WebGL 2.0 Numeric version: 2 Supports NPOT textures: yes Supports GPU profiling: no Supports highp precision: yes Vendor: Google Inc. Renderer: ANGLE (Intel(R) UHD Graphics 630 Direct3D11 vs_5_0 ps_5_0) Major performance caveat: no Maximum texture size: 16384 Point size range: 1 to 1024 Extensions: EXT_color_buffer_float EXT_float_blend EXT_texture_compression_bptc EXT_texture_compression_rgtc EXT_texture_filter_anisotropic OES_texture_float_linear OVR_multiview2 WEBGL_compressed_texture_s3tc WEBGL_compressed_texture_s3tc_srgb WEBGL_debug_renderer_info WEBGL_debug_shaders WEBGL_lose_context Audio information System sample rate: 48000 Hz Output channels: 2 Output interpretation: speakers Supported decode formats: WebM Opus (audio/webm; codecs=opus) Ogg Opus (audio/ogg; codecs=opus) WebM Vorbis (audio/webm; codecs=vorbis) Ogg Vorbis (audio/ogg; codecs=vorbis) MPEG-4 AAC (audio/mp4; codecs=mp4a.40.5) MP3 (audio/mpeg) FLAC (audio/flac) PCM WAV (audio/wav; codecs=1) Supported encode formats: WebM Opus (audio/webm; codecs=opus) Ogg Opus (audio/ogg; codecs=opus) Video information Supported decode formats: WebM AV1 (video/webm; codecs=av01.0.00M.08) MP4 AV1 (video/mp4; codecs=av01.0.00M.08) WebM VP9 (video/webm; codecs=vp9) WebM VP8 (video/webm; codecs=vp8) Ogg Theora (video/ogg; codecs=theora) H.264 (video/mp4; codecs=avc1.42E01E) Supported encode formats: WebM VP8 (video/webm; codecs=vp8)
DiegoScirra commented 3 years ago

Fixed in the next beta.