Page MenuHome

Principled Node added in Add Images as Planes
ClosedPublic

Authored by Himanshi Kalra (calra) on Aug 27 2019, 8:10 PM.

Details

Summary

This is about replacing the Diffuse shader with a principled shader, so that exporting to other formats like OBJ, FBX, GLTF becomes hassle - free as the textures are also imported along with it , as mentioned in the Task T66299

Diff Detail

Event Timeline

Using the original file name and path

Some changes needed here, but i can do the cleanup and commit on yuour behalf too if you want, might be quicker?

io_import_images_as_planes.py
22–26 ↗(On Diff #17603)

No reason to change those, just increase the version number

344–347 ↗(On Diff #17603)

No changes in empty lines, spacing and other such cleanup in patches please. Only relevant stuff.

736 ↗(On Diff #17603)

just replace 'Diffuse' by 'Principled' instead, there is no point in adding new stuff while changing behavior of existing option to mimic new option behavior

Hi thanks for reviewing, I wanted to do it as it would be my first commit, but if I get stuck you can do it as well .... I will clean up the code and update it . I had this one doubt the new version would be called (3,2,3) right ? Thanks

Incremented the version number and corrected some changes, and cleansed the patch.

Almost ready for commit :)

io_import_images_as_planes.py
24 ↗(On Diff #17613)

You can increase the middle number here, this is a important change in the add-on, not a simple minor fix. So 3, 3, 0 ;)

345 ↗(On Diff #17613)

Tsst, changes in indentation ;)

395–397 ↗(On Diff #17613)

Tsst, changes in indentation ;)

1014–1018 ↗(On Diff #17613)

No need to keep those comments :)

1031 ↗(On Diff #17613)

No need to keep those comments :)

1034–1040 ↗(On Diff #17613)

No need to keep those comments :)

Himanshi Kalra (calra) marked 3 inline comments as done.

Removed the extra comments and indentation, waiting readily to be commited : ) Thanks

Himanshi Kalra (calra) marked 5 inline comments as done.Aug 28 2019, 8:33 PM

Looks perfect, thanks! Will commit on your behalf tomorrow.

This revision is now accepted and ready to land.Aug 28 2019, 9:29 PM