Skip to content

Commit 373961b

Browse files
committed
small stuff
1 parent 1499b96 commit 373961b

4 files changed

Lines changed: 11 additions & 3 deletions

File tree

src/frame.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,13 @@ Frame::rotate(const V3d *axis, float32 angle, CombineOp op)
275275
updateObjects();
276276
}
277277

278+
void
279+
Frame::rotate(const Quat *q, CombineOp op)
280+
{
281+
this->matrix.rotate(*q, op);
282+
updateObjects();
283+
}
284+
278285
void
279286
Frame::translate(const V3d *trans, CombineOp op)
280287
{

src/image.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -940,7 +940,7 @@ Image::getFilename(const char *name)
940940
f = engine->filefuncs.rwfopen(s, "rb");
941941
if(f){
942942
engine->filefuncs.rwfclose(f);
943-
printf("found %s\n", s);
943+
// printf("found %s\n", s);
944944
return s;
945945
}
946946
rwFree(s);
@@ -958,7 +958,7 @@ Image::getFilename(const char *name)
958958
f = engine->filefuncs.rwfopen(s, "r");
959959
if(f){
960960
engine->filefuncs.rwfclose(f);
961-
printf("found %s\n", name);
961+
// printf("found %s\n", name);
962962
return s;
963963
}
964964
rwFree(s);

src/rwobjects.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ struct Frame
7171
return !!(this->root->object.privateFlags & HIERARCHYSYNC); }
7272
Matrix *getLTM(void);
7373
void rotate(const V3d *axis, float32 angle, CombineOp op = rw::COMBINEPOSTCONCAT);
74+
void rotate(const Quat *q, CombineOp op = rw::COMBINEPOSTCONCAT);
7475
void translate(const V3d *trans, CombineOp op = rw::COMBINEPOSTCONCAT);
7576
void scale(const V3d *scale, CombineOp op = rw::COMBINEPOSTCONCAT);
7677
void transform(const Matrix *mat, CombineOp op = rw::COMBINEPOSTCONCAT);

src/texture.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ textureClose(void *object, int32 offset, int32 size)
7373

7474
FORLIST(lnk, TEXTUREGLOBAL(textures)){
7575
Texture *tex = LLLinkGetData(lnk, Texture, inGlobalList);
76-
printf("Tex still allocated: %d %s %s\n", tex->refCount, tex->name, tex->mask);
76+
// printf("Tex still allocated: %d %s %s\n", tex->refCount, tex->name, tex->mask);
7777
assert(tex->dict == nil);
7878
tex->destroy();
7979
}

0 commit comments

Comments
 (0)