Changeset View
Changeset View
Standalone View
Standalone View
source/blender/io/gpencil/intern/gpencil_io_base.cc
| Show First 20 Lines • Show All 114 Lines • ▼ Show 20 Lines | GpencilIO::GpencilIO(const GpencilIOParams *iparams) | ||||
| else { | else { | ||||
| is_camera_ = false; | is_camera_ = false; | ||||
| is_ortho_ = false; | is_ortho_ = false; | ||||
| /* Calc selected object boundbox. Need set initial value to some variables. */ | /* Calc selected object boundbox. Need set initial value to some variables. */ | ||||
| camera_ratio_ = 1.0f; | camera_ratio_ = 1.0f; | ||||
| offset_.x = 0.0f; | offset_.x = 0.0f; | ||||
| offset_.y = 0.0f; | offset_.y = 0.0f; | ||||
| create_object_list(); | |||||
| selected_objects_boundbox_calc(); | selected_objects_boundbox_calc(); | ||||
| rctf boundbox; | rctf boundbox; | ||||
| selected_objects_boundbox_get(&boundbox); | selected_objects_boundbox_get(&boundbox); | ||||
| render_x_ = boundbox.xmax - boundbox.xmin; | render_x_ = boundbox.xmax - boundbox.xmin; | ||||
| render_y_ = boundbox.ymax - boundbox.ymin; | render_y_ = boundbox.ymax - boundbox.ymin; | ||||
| offset_.x = boundbox.xmin; | offset_.x = boundbox.xmin; | ||||
| offset_.y = boundbox.ymin; | offset_.y = boundbox.ymin; | ||||
| ▲ Show 20 Lines • Show All 266 Lines • Show Last 20 Lines | |||||