Page MenuHome

Fix T81494 - Image Texture Node result shade as pink color
Needs ReviewPublic

Authored by Fabrício Luis (ce3po) on May 20 2021, 8:49 PM.
This revision needs review, but there are no reviewers specified.

Details

Summary

Fix T81494
When switching in Image Texture Node 'Single Image' to 'Generated' and after 'Generated' to 'Single Image' this shader result as pink color.

Solution
Created ima->last_filepath variable for save last filepath before switching to Generated. And back restore filepath
when change to Single_Image.
This ima->last_filepath variable avoid saving img->filepath and not affected other applications.
And the scope this variable only handled wher img->source equal generated image in BKE_image_signal function.

Diff Detail

Repository
rB Blender
Branch
Fix_T81494 (branched from master)
Build Status
Buildable 14676
Build 14676: arc lint + arc unit

Event Timeline

Fabrício Luis (ce3po) requested review of this revision.May 20 2021, 8:49 PM
Fabrício Luis (ce3po) created this revision.
Fabrício Luis (ce3po) edited the summary of this revision. (Show Details)May 20 2021, 8:55 PM
Fabrício Luis (ce3po) edited the summary of this revision. (Show Details)May 20 2021, 8:59 PM
Fabrício Luis (ce3po) edited the summary of this revision. (Show Details)May 20 2021, 10:25 PM
Fabrício Luis (ce3po) retitled this revision from Fix T81494 to Fix T81494 - Image Texture Node result shade as pink color.May 20 2021, 10:40 PM

@Philipp Oeser (lichtwerk) , got any point for this patch ? you already have an alternative solution.

@Philipp Oeser (lichtwerk) , got any point for this patch ? you already have an alternative solution.

I am always a bit paranoid on growing struct sizes on something as often used as Image, will have to check my solution again (soonish)

@Philipp Oeser (lichtwerk) , got any point for this patch ? you already have an alternative solution.

I am always a bit paranoid on growing struct sizes on something as often used as Image, will have to check my solution again (soonish)

Thanks, @Philipp Oeser (lichtwerk) and @Pratik Borhade (PratikPB2123) for yours comments.
Is true, growing struct size is no good. I will go try find other solution, too.

Regards,

Fabrício Luis.