查看单个帖子
旧 2009-05-06, 05:54 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】missing highlight on newly created objects

missing highlight on newly created objects
missing highlight on newly created objects
hi,
i'm having some trouble with the oddbentity::highlight(..) function - it doesn't seem to work on objects which has been recently created. example:
code:
oddbobjectid id = pdb->insert(..);
oddbentityptr pent = id.safeopenobject(oddb::kforwrite);
pent->highlight(true); // highlight entity
playout->update(); // update view
the above code will not highlight the entity. a workaround is to update the view once before highlighting:
code:
oddbobjectid id = pdb->insert(..);
playout->update(); // update view
oddbentityptr pent = id.safeopenobject(oddb::kforwrite);
pent->highlight(true); // highlight entity
playout->update(); // update view again to show highlighted object
i am assuming this is a bug. the workaround is ok, but the extra view update leads to some unnecessary code/extra steps, so a fix would be nice.
this has been tested on v2.3.0 and 2.3.1 libraries (not recompiled for 2.3.1), but i think it has like this at least since v2.2.
hi,
please enter a bug to our bugzilla at (instructions for bug entry are available on this page).
assign it on .
hi,
a bug report has been submitted.
ok, thanks!
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)