Robert Bragg
f834b8b138
material: Don't prune ancestry if it owns some layers
...
Each time a material property changes we look to see if any of its
ancestry has become redundant and if so we prune that redundant
ancestry.
There was a problem with the logic that handles this though because we
weren't considering that a material which is a layer state authority may
still defer to ancestors to define the state of individual layers.
For example a material that derives from a parent with 5 layers can
become a STATE_LAYERS authority by simply changing it's ->n_layers count
to 4 and in that case it can still defer to its ancestors to define the
state of those 4 layers.
This patch checks first if a material is a layer state authority and if
so only tries to prune its ancestry if it also *owns* all the individual
layers it depends on. (I.e. if g_list_length
(material->layer_differences) != material->n_layers then it's not safe
to try pruning its ancestry!)
http://bugzilla-attachments.gnome.org/attachment.cgi?id=170907
2010-09-24 00:12:14 +01:00
..
2010-08-12 16:50:46 +01:00
2010-09-12 19:25:47 +01:00
2010-09-20 13:15:44 +01:00
2010-08-12 11:56:59 +01:00
2010-08-12 11:56:59 +01:00
2010-08-12 11:57:00 +01:00
2010-08-12 11:56:59 +01:00
2010-07-15 17:24:01 +01:00
2010-07-22 20:13:37 +01:00
2010-07-15 17:27:15 +01:00
2010-08-02 17:41:42 +01:00
2010-07-13 14:28:45 +01:00
2010-05-24 16:10:56 +01:00
2010-05-24 16:10:56 +01:00
2010-06-15 15:26:27 +01:00
2010-06-15 15:26:27 +01:00
2010-07-07 14:08:11 +01:00
2010-07-07 14:08:11 +01:00
2010-09-15 11:56:59 +01:00
2010-08-12 11:54:42 +01:00
2010-08-12 11:54:42 +01:00
2010-07-09 18:57:54 +01:00
2010-06-01 12:20:59 +01:00
2010-07-07 14:41:54 +01:00
2010-04-15 14:51:01 +01:00
2010-06-15 15:26:27 +01:00
2010-06-15 15:26:27 +01:00
2010-06-15 15:26:27 +01:00
2010-09-14 12:43:17 +01:00
2010-08-12 11:56:59 +01:00
2010-09-14 12:43:16 +01:00
2010-09-14 12:43:16 +01:00
2010-09-14 12:43:16 +01:00
2010-07-13 14:28:51 +01:00
2010-03-01 12:56:10 +00:00
2009-10-16 18:58:50 +01:00
2009-10-16 18:58:50 +01:00
2010-06-22 12:22:43 +01:00
2010-06-22 12:22:43 +01:00
2010-03-01 12:56:10 +00:00
2010-06-01 12:08:18 +01:00
2010-07-07 14:41:54 +01:00
2010-09-23 17:33:11 +01:00
2010-06-04 14:44:15 +01:00
2010-08-09 17:27:02 +01:00
2010-06-15 15:26:27 +01:00
2010-09-14 12:43:17 +01:00
2010-09-15 14:07:50 +01:00
2010-09-15 14:07:50 +01:00
2010-09-15 14:07:50 +01:00
2010-09-15 14:07:50 +01:00
2010-09-15 14:07:50 +01:00
2010-09-15 14:07:50 +01:00
2010-08-03 15:00:07 +01:00
2010-09-15 14:07:50 +01:00
2010-09-15 14:07:50 +01:00
2010-09-24 00:12:14 +01:00
2010-09-15 14:07:50 +01:00
2010-03-01 12:56:10 +00:00
2010-03-01 12:56:10 +00:00
2010-03-01 12:56:10 +00:00
2010-03-01 12:56:10 +00:00
2010-03-01 12:56:10 +00:00
2010-08-02 17:41:42 +01:00
2010-09-03 16:12:24 +01:00
2010-09-17 17:22:16 +01:00
2010-06-04 14:44:15 +01:00
2010-06-04 14:44:15 +01:00
2010-09-06 16:11:46 +01:00
2010-06-29 20:37:14 +01:00
2010-07-13 19:26:58 +01:00
2010-09-20 13:15:44 +01:00
2010-07-07 14:08:11 +01:00
2010-07-07 14:08:11 +01:00
2010-07-05 15:20:04 +01:00
2010-08-02 17:41:42 +01:00
2010-03-25 09:33:26 +00:00
2010-09-14 12:43:17 +01:00
2010-09-14 12:43:17 +01:00
2010-08-12 11:57:00 +01:00
2010-08-12 11:54:42 +01:00
2010-08-09 17:27:02 +01:00
2010-08-12 16:50:47 +01:00
2010-09-03 16:59:01 +01:00
2010-03-01 12:56:10 +00:00
2010-03-01 12:56:10 +00:00
2010-03-01 12:56:10 +00:00
2010-07-13 14:29:07 +01:00
2010-07-15 17:24:01 +01:00
2010-07-15 17:24:01 +01:00
2010-09-15 15:01:43 +01:00
2010-07-15 17:24:01 +01:00
2010-07-15 17:24:01 +01:00
2010-09-14 12:43:16 +01:00
2010-07-13 14:28:52 +01:00
2010-07-13 14:28:52 +01:00
2010-07-15 17:24:01 +01:00
2010-07-15 17:24:01 +01:00
2010-07-15 17:24:01 +01:00
2010-07-15 17:27:15 +01:00
2010-03-01 12:56:10 +00:00
2010-09-13 15:45:55 +01:00
2010-09-15 15:01:43 +01:00
2010-09-15 15:01:43 +01:00
2010-05-20 17:18:24 +01:00
2010-06-30 18:51:31 +01:00
2010-03-01 12:56:10 +00:00
2010-09-15 14:28:44 +01:00
2010-09-13 15:45:55 +01:00
2010-09-03 16:58:47 +01:00
2010-08-02 17:41:42 +01:00
2009-10-16 18:58:50 +01:00
2010-09-15 16:12:56 +01:00
2010-03-03 17:02:51 +00:00