Cleanup: format
This commit is contained in:
@@ -76,7 +76,8 @@ ccl_device bool film_adaptive_sampling_convergence_check(KernelGlobals kg,
|
|||||||
float error_normalize;
|
float error_normalize;
|
||||||
if (intensity < 1.0f) {
|
if (intensity < 1.0f) {
|
||||||
error_normalize = sqrtf(intensity);
|
error_normalize = sqrtf(intensity);
|
||||||
} else {
|
}
|
||||||
|
else {
|
||||||
error_normalize = intensity;
|
error_normalize = intensity;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -260,6 +260,7 @@ class CLIP_HT_header(Header):
|
|||||||
sub.active = sc.show_gizmo
|
sub.active = sc.show_gizmo
|
||||||
sub.popover(panel="CLIP_PT_gizmo_display", text="")
|
sub.popover(panel="CLIP_PT_gizmo_display", text="")
|
||||||
|
|
||||||
|
|
||||||
class CLIP_MT_tracking_editor_menus(Menu):
|
class CLIP_MT_tracking_editor_menus(Menu):
|
||||||
bl_idname = "CLIP_MT_tracking_editor_menus"
|
bl_idname = "CLIP_MT_tracking_editor_menus"
|
||||||
bl_label = ""
|
bl_label = ""
|
||||||
@@ -1903,6 +1904,7 @@ class CLIP_MT_view_pie(Menu):
|
|||||||
pie.separator()
|
pie.separator()
|
||||||
pie.operator("clip.graph_center_current_frame")
|
pie.operator("clip.graph_center_current_frame")
|
||||||
|
|
||||||
|
|
||||||
class CLIP_PT_gizmo_display(Panel):
|
class CLIP_PT_gizmo_display(Panel):
|
||||||
bl_space_type = 'CLIP_EDITOR'
|
bl_space_type = 'CLIP_EDITOR'
|
||||||
bl_region_type = 'HEADER'
|
bl_region_type = 'HEADER'
|
||||||
|
|||||||
@@ -957,7 +957,8 @@ class TextureRef : public Texture {
|
|||||||
* Dummy type to bind texture as image.
|
* Dummy type to bind texture as image.
|
||||||
* It is just a GPUTexture in disguise.
|
* It is just a GPUTexture in disguise.
|
||||||
*/
|
*/
|
||||||
class Image {};
|
class Image {
|
||||||
|
};
|
||||||
|
|
||||||
static inline Image *as_image(GPUTexture *tex)
|
static inline Image *as_image(GPUTexture *tex)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -5098,7 +5098,8 @@ static uiBlock *CurveProfile_buttons_tools(bContext *C, ARegion *region, void *p
|
|||||||
|
|
||||||
static bool CurveProfile_can_zoom_in(CurveProfile *profile)
|
static bool CurveProfile_can_zoom_in(CurveProfile *profile)
|
||||||
{
|
{
|
||||||
return BLI_rctf_size_x(&profile->view_rect) > CURVE_ZOOM_MAX * BLI_rctf_size_x(&profile->clip_rect);
|
return BLI_rctf_size_x(&profile->view_rect) >
|
||||||
|
CURVE_ZOOM_MAX * BLI_rctf_size_x(&profile->clip_rect);
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool CurveProfile_can_zoom_out(CurveProfile *profile)
|
static bool CurveProfile_can_zoom_out(CurveProfile *profile)
|
||||||
|
|||||||
Reference in New Issue
Block a user