Page MenuHome

Updating outliner_draw_struct_marks to retained mode
ClosedPublic

Authored by Chaitanya (cyrax) on Dec 27 2016, 2:56 AM.

Details

Summary

Had to add a few utility functions to replace existing functions. Let me know if these are duplicates.

Diff Detail

Repository
rB Blender

Event Timeline

Chaitanya (cyrax) retitled this revision from to Updating outliner_draw_struct_marks to retained mode.
Chaitanya (cyrax) updated this object.
Chaitanya (cyrax) set the repository for this revision to rB Blender.

Hi, thanks for contributing! Here are some simple comments. I'll take a closer look at this tomorrow.

source/blender/editors/interface/resources.c
1328

Indention here & a few other places needs cleanup.

source/blender/editors/screen/glutil.c
216–223

I think drawing one line is so simple that no helper function is needed. fdrawline will just go away.

source/blender/editors/space_outliner/outliner_draw.c
1684–1691

blender code style

if (condition) {
   do stuff;
}
Chaitanya (cyrax) edited edge metadata.

Updated the formatting. I'd like to keep the draw line function around. Makes is look cleaner.

Chaitanya (cyrax) marked 2 inline comments as done.Dec 27 2016, 9:48 AM
Chaitanya (cyrax) added inline comments.
source/blender/editors/screen/glutil.c
216–223

Left this in place. If there are strong feelings against this kind of util functions, let me know and I'll delete it. Otherwise it helps reduce clutter.

source/blender/editors/space_outliner/outliner_draw.c
1697

Is there a better way to do this?
Perhaps change the input format from INT to FLOAT and use immRectf; thus avoiding multiple bindings.
I am not sure if we should be updating the signature of this function as yet.

Mike Erwin (merwin) edited edge metadata.
This revision is now accepted and ready to land.Jan 16 2017, 1:29 AM

Landed in blender2.8 — thanks!