Fix #125681: GPv3: Inverted "Fade Inactive Layers" option
"Fade Inactive Layers" option was accidentally inverted in GPv3, now corrected.
This commit is contained in:
parent
ef505727c6
commit
ef855a8165
@ -213,7 +213,7 @@ static float grease_pencil_layer_final_opacity_get(const GPENCIL_PrivateData *pd
|
|||||||
{
|
{
|
||||||
const bool is_obact = ((pd->obact) && (pd->obact == ob));
|
const bool is_obact = ((pd->obact) && (pd->obact == ob));
|
||||||
const bool is_fade = (pd->fade_layer_opacity > -1.0f) && (is_obact) &&
|
const bool is_fade = (pd->fade_layer_opacity > -1.0f) && (is_obact) &&
|
||||||
grease_pencil.is_layer_active(&layer);
|
(!grease_pencil.is_layer_active(&layer));
|
||||||
|
|
||||||
/* Defines layer opacity. For active object depends of layer opacity factor, and
|
/* Defines layer opacity. For active object depends of layer opacity factor, and
|
||||||
* for no active object, depends if the fade grease pencil objects option is enabled. */
|
* for no active object, depends if the fade grease pencil objects option is enabled. */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user