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])
|
||||
{
|
||||
return pxr::GfMatrix4d(m[0][0],
|
||||
m[0][1],
|
||||
m[0][2],
|
||||
m[0][3],
|
||||
m[1][0],
|
||||
m[1][1],
|
||||
m[1][2],
|
||||
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]);
|
||||
pxr::GfMatrix4d ret = pxr::GfMatrix4d();
|
||||
for (int i = 0; i < 4; i++) {
|
||||
for (int j = 0; j < 4; j++) {
|
||||
ret[i][j] = m[i][j];
|
||||
}
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
std::string format_duration(std::chrono::milliseconds millisecs)
|
||||
|
@ -7,12 +7,12 @@
|
||||
#include <pxr/imaging/glf/drawTarget.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 "BLI_math_matrix.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 "glog/logging.h"
|
||||
|
Loading…
Reference in New Issue
Block a user