Log In
New Account
Home My Page Projects Blender 2.x BF release
Summary Activity Tracker SCM Files

Blender 2.6 Bug Tracker: Browse

[#25030] Grease Pencil active_frame_delete() deletes wrong layer

Date:
2010-12-03 21:45
Priority:
3
State:
Closed
Submitted by:
Olivier Amrein (oenvoyage)
Assigned to:
Campbell Barton (campbellbarton)
Category:
None
Status:
Fixed / Closed
Relates to:
Duplicates:
Patches:
 
Summary:
Grease Pencil active_frame_delete() deletes wrong layer
Detailed description
If you have a frame with 2 grease pencil layers the Delete Frame button deletes the "active" layer, even if we click on an inactive layer's button.

Open the attached example, there are 2 GP layers.
The black one is active. White is inactive
Click on the Delete Frame button on white layer.
It deletes the Black frame, and then makes white layer active.
I think the delete operator is called before the set Active or the UI doesnt take in account which layer the button is on.

Followup

Message
  • Date: 2010-12-04 14:54
  • Sender: ronan ducluzeau
  • ubuntu 10.04 64bits rev33468

    Even if black Layer is protected; a click on Delete Frame button on inactive white layer delete the black frame.
  • Date: 2010-12-06 06:32
  • Sender: Campbell Barton
  • moved to the header r33498 since these only operate on the active layer.
 

Attached Files:

Name Date Download
grease_pencil_delete_frame.blend 2010-12-03 21:45 Download

Changes:

Field Old Value Date By
ResolutionInvestigate2010-12-06 06:32campbellbarton
close_date2010-12-06 06:322010-12-06 06:32campbellbarton
assigned_toaligorith2010-12-06 06:32campbellbarton
status_idOpen2010-12-06 06:32campbellbarton
ResolutionNone2010-12-04 00:03aligorith
assigned_tonone2010-12-04 00:03aligorith
File Added13950: grease_pencil_delete_frame.blend2010-12-03 21:45oenvoyage