forked from blender/blender
BLEN-367: Fix code style #14
@ -20,22 +20,13 @@ namespace blender::render::hydra {
|
|||||||
|
|
||||||
pxr::GfMatrix4d gf_matrix_from_transform(float m[4][4])
|
pxr::GfMatrix4d gf_matrix_from_transform(float m[4][4])
|
||||||
{
|
{
|
||||||
return pxr::GfMatrix4d(m[0][0],
|
pxr::GfMatrix4d ret = pxr::GfMatrix4d();
|
||||||
m[0][1],
|
for (int i = 0; i < 4; i++) {
|
||||||
m[0][2],
|
for (int j = 0; j < 4; j++) {
|
||||||
m[0][3],
|
ret[i][j] = m[i][j];
|
||||||
m[1][0],
|
}
|
||||||
m[1][1],
|
}
|
||||||
m[1][2],
|
return ret;
|
||||||
m[1][3],
|
|
||||||
m[2][0],
|
|
||||||
m[2][1],
|
|
||||||
m[2][2],
|
|
||||||
m[2][3],
|
|
||||||
m[3][0],
|
|
||||||
m[3][1],
|
|
||||||
m[3][2],
|
|
||||||
m[3][3]);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string format_duration(std::chrono::milliseconds millisecs)
|
std::string format_duration(std::chrono::milliseconds millisecs)
|
||||||
|
@ -7,12 +7,12 @@
|
|||||||
#include <pxr/imaging/glf/drawTarget.h>
|
#include <pxr/imaging/glf/drawTarget.h>
|
||||||
#include <pxr/usd/usdGeom/camera.h>
|
#include <pxr/usd/usdGeom/camera.h>
|
||||||
|
|
||||||
|
#include "DNA_camera_types.h"
|
||||||
|
#include "DNA_screen_types.h"
|
||||||
|
#include "DNA_vec_types.h" /* this include should be before BKE_camera.h due to "rctf" type */
|
||||||
#include "BKE_camera.h"
|
#include "BKE_camera.h"
|
||||||
#include "BLI_math_matrix.h"
|
#include "BLI_math_matrix.h"
|
||||||
#include "DEG_depsgraph_query.h"
|
#include "DEG_depsgraph_query.h"
|
||||||
#include "DNA_camera_types.h"
|
|
||||||
#include "DNA_screen_types.h"
|
|
||||||
#include "DNA_vec_types.h"
|
|
||||||
#include "GPU_shader.h"
|
#include "GPU_shader.h"
|
||||||
|
|
||||||
#include "glog/logging.h"
|
#include "glog/logging.h"
|
||||||
|
Loading…
Reference in New Issue
Block a user