forked from bartvdbraak/blender
Code cleanup: style, unused import
This commit is contained in:
parent
d7d2e71a03
commit
a2489e29f6
@ -782,10 +782,10 @@ ccl_device_inline bool bvh_curve_intersect(KernelGlobals *kg, Intersection *isec
|
|||||||
}
|
}
|
||||||
|
|
||||||
float z = zcentre + (dirz * correction);
|
float z = zcentre + (dirz * correction);
|
||||||
bool backface = false;
|
// bool backface = false;
|
||||||
|
|
||||||
if(flags & CURVE_KN_BACKFACING && (t < 0.0f || z < 0 || z > l)) {
|
if(flags & CURVE_KN_BACKFACING && (t < 0.0f || z < 0 || z > l)) {
|
||||||
backface = true;
|
// backface = true;
|
||||||
correction = ((-tb + rootd)/(2*a));
|
correction = ((-tb + rootd)/(2*a));
|
||||||
t = tcentre + correction;
|
t = tcentre + correction;
|
||||||
z = zcentre + (dirz * correction);
|
z = zcentre + (dirz * correction);
|
||||||
|
@ -201,7 +201,7 @@ class BPyOpsSubModOp(object):
|
|||||||
return op_get_instance(self.idname())
|
return op_get_instance(self.idname())
|
||||||
|
|
||||||
def __repr__(self): # useful display, repr(op)
|
def __repr__(self): # useful display, repr(op)
|
||||||
import bpy
|
# import bpy
|
||||||
idname = self.idname()
|
idname = self.idname()
|
||||||
as_string = op_as_string(idname)
|
as_string = op_as_string(idname)
|
||||||
# XXX You never quite know what you get from bpy.types,
|
# XXX You never quite know what you get from bpy.types,
|
||||||
|
@ -336,7 +336,7 @@ static void time_draw_idblock_keyframes(View2D *v2d, ID *id, short onlysel)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* draw keyframe lines for timeline */
|
/* draw keyframe lines for timeline */
|
||||||
static void time_draw_keyframes(const bContext *C, SpaceTime *stime, ARegion *ar)
|
static void time_draw_keyframes(const bContext *C, ARegion *ar)
|
||||||
{
|
{
|
||||||
Scene *scene = CTX_data_scene(C);
|
Scene *scene = CTX_data_scene(C);
|
||||||
Object *ob = CTX_data_active_object(C);
|
Object *ob = CTX_data_active_object(C);
|
||||||
@ -516,7 +516,7 @@ static void time_main_area_draw(const bContext *C, ARegion *ar)
|
|||||||
UI_view2d_view_ortho(v2d);
|
UI_view2d_view_ortho(v2d);
|
||||||
|
|
||||||
/* keyframes */
|
/* keyframes */
|
||||||
time_draw_keyframes(C, stime, ar);
|
time_draw_keyframes(C, ar);
|
||||||
|
|
||||||
/* markers */
|
/* markers */
|
||||||
UI_view2d_view_orthoSpecial(ar, v2d, 1);
|
UI_view2d_view_orthoSpecial(ar, v2d, 1);
|
||||||
|
Loading…
Reference in New Issue
Block a user