Output selection cleared on component mode change bug

From K-3D

Jump to: navigation, search

The following is a k-3d tutorial that shows this bug in action:


#k3dscript

<command node="/ui" command="tutorial_message" arguments="This is a sample showing some selection usability bugs"/>
<command node="/document/window/toolbar/main/select" command="value" arguments="true"/>
<command node="/document/window/toolbar/create/create_PolyCube" command="activate" arguments=""/>
<command node="/document/selection_tool" command="start_orbit" arguments="<arguments><viewport>/document/window/viewport</viewport><mouse>0.32000000000000001 0.62666666666666671</mouse></arguments>"/>
<command node="/document/selection_tool" command="orbit_motion" arguments="<arguments><viewport>/document/window/viewport</viewport><mouse>0.32999999999999996 0.6293333333333333</mouse><timestamp>0.01655309600755572</timestamp><new_view_matrix>0.69468330876525353 -0.41506152747823527 -0.5874853435877303 8.1663942929624671 -0.71931571686079498 -0.40084806781101429 -0.56736736424402934 7.8990599439657823 -4.4035277811313453e-15 0.81672807894648181 -0.57702274223845751 8.0116611756002474 0 0 0 1</new_view_matrix></arguments>"/>
<command node="/document/selection_tool" command="orbit_motion" arguments="<arguments><viewport>/document/window/viewport</viewport><mouse>0.33400000000000002 0.6293333333333333</mouse><timestamp>0.0325170960277319</timestamp><new_view_matrix>0.70227848833277928 -0.4107838335949055 -0.58143062086727038 8.082327611707667 -0.71190232814974463 -0.40523065915286161 -0.57357056066146805 7.9851881054129707 -4.3961687588855991e-15 0.81672807894648169 -0.57702274223845773 8.0116611756002474 0 0 0 1</new_view_matrix></arguments>"/>
<command node="/document/selection_tool" command="orbit_motion" arguments="<arguments><viewport>/document/window/viewport</viewport><mouse>0.33600000000000002 0.63200000000000001</mouse><timestamp>0.04053309606388211</timestamp><new_view_matrix>0.70604646565958717 -0.41345862161264429 -0.57493508898290224 7.9921405240878851 -0.70816550913582732 -0.41222142948239054 -0.57321471085962994 7.9802473156779339 -4.3288804615557175e-15 0.81186542067615308 -0.58384461863610015 8.1063793873430185 0 0 0 1</new_view_matrix></arguments>"/>
<command node="/document/selection_tool" command="orbit_motion" arguments="<arguments><viewport>/document/window/viewport</viewport><mouse>0.33799999999999997 0.63200000000000001</mouse><timestamp>0.04849009600002319</timestamp><new_view_matrix>0.70979455968040228 -0.41126525633819849 -0.57188510382521729 7.9497930637794969 -0.70440874714053892 -0.41440973400658543 -0.57625765878857294 8.0224970677190903 -4.248608843210322e-15 0.81186542067615308 -0.58384461863609993 8.1063793873430185 0 0 0 1</new_view_matrix></arguments>"/>
<command node="/document/selection_tool" command="orbit_motion" arguments="<arguments><viewport>/document/window/viewport</viewport><mouse>0.34199999999999997 0.63200000000000001</mouse><timestamp>0.06451109598856419</timestamp><new_view_matrix>0.71723067615962821 -0.40684384238196691 -0.56573690448076641 7.8644285081352905 -0.69683581794824712 -0.41875127059653233 -0.58229478462217676 8.1063194253365047 -3.7210496186060316e-15 0.81186542067615308 -0.58384461863609993 8.1063793873430185 0 0 0 1</new_view_matrix></arguments>"/>
<command node="/document/selection_tool" command="orbit_motion" arguments="<arguments><viewport>/document/window/viewport</viewport><mouse>0.34600000000000003 0.63466666666666671</mouse><timestamp>0.0804970960598439</timestamp><new_view_matrix>0.7245860001284854 -0.40704989003994457 -0.55613444007386525 7.7311032756142817 -0.68918439362611994 -0.42795898224705192 -0.58470161714866575 8.1397370452969167 -3.2905129359120381e-15 0.80694578289531727 -0.5906255188082068 8.2005286654698075 0 0 0 1</new_view_matrix></arguments>"/>
<command node="/document/selection_tool" command="orbit_motion" arguments="<arguments><viewport>/document/window/viewport</viewport><mouse>0.34999999999999998 0.63466666666666671</mouse><timestamp>0.09650109603535384</timestamp><new_view_matrix>0.73185970304588088 -0.40248491141066711 -0.54989750967279583 7.6445067353196476 -0.68145533606949993 -0.4322550168062953 -0.59057110104389143 8.2212317816426079 -3.5037619507127804e-15 0.80694578289531749 -0.59062551880820657 8.2005286654698075 0 0 0 1</new_view_matrix></arguments>"/>
<command node="/document/selection_tool" command="orbit_motion" arguments="<arguments><viewport>/document/window/viewport</viewport><mouse>0.35199999999999998 0.63466666666666671</mouse><timestamp>0.1124990960815921</timestamp><new_view_matrix>0.73546569020270014 -0.40018538802682641 -0.54675577156943145 7.6008853330002397 -0.67756196656443601 -0.43438480484160752 -0.59348093717326145 8.2616333454606927 -3.7945720784277048e-15 0.8069457828953176 -0.59062551880820646 8.2005286654698075 0 0 0 1</new_view_matrix></arguments>"/>
<command node="/document/selection_tool" command="orbit_motion" arguments="<arguments><viewport>/document/window/viewport</viewport><mouse>0.35399999999999998 0.63733333333333331</mouse><timestamp>0.1285170960472897</timestamp><new_view_matrix>0.73905096556493266 -0.40241462074386547 -0.54024637278663123 7.5105057106956652 -0.67364951591873112 -0.44148315554357481 -0.59269634137030658 8.2507396401126378 -3.8464782574354484e-15 0.80196951088109247 -0.597364966847857 8.2941024022601155 0 0 0 1</new_view_matrix></arguments>"/>
<command node="/document/selection_tool" command="orbit_motion" arguments="<arguments><viewport>/document/window/viewport</viewport><mouse>0.35599999999999998 0.63733333333333331</mouse><timestamp>0.1444960960652679</timestamp><new_view_matrix>0.7426154281659556 -0.40006612720653995 -0.53709349252421124 7.4667296052829748 -0.66971809431274465 -0.4436124406270654 -0.59555493169900287 8.2904296825960913 -4.3605798225737624e-15 0.80196951088109258 -0.59736496684785678 8.2941024022601155 0 0 0 1</new_view_matrix></arguments>"/>
<command node="/document/selection_tool" command="orbit_motion" arguments="<arguments><viewport>/document/window/viewport</viewport><mouse>0.35999999999999999 0.64000000000000001</mouse><timestamp>0.1604930959874764</timestamp><new_view_matrix>0.74968151415129913 -0.39976781973743336 -0.52741190510093194 7.3323057907616187 -0.66179878160949757 -0.45285448196332079 -0.59744890227191561 8.3167264806180654 -4.0434100295402842e-15 0.79693695388538199 -0.60406248975738319 8.3870940303869173 0 0 0 1</new_view_matrix></arguments>"/>
<command node="/document/selection_tool" command="orbit_motion" arguments="<arguments><viewport>/document/window/viewport</viewport><mouse>0.36199999999999999 0.64000000000000001</mouse><timestamp>0.3126040960196406</timestamp><new_view_matrix>0.753182938544255 -0.39735901903004467 -0.5242339850499218 7.2881820208854613 -0.65781111353171973 -0.45496956109982684 -0.60023931676189779 8.3554699369790661 -4.1346591948820954e-15 0.79693695388538199 -0.60406248975738297 8.3870940303869173 0 0 0 1</new_view_matrix></arguments>"/>
<command node="/document/selection_tool" command="finish_orbit" arguments=""/>
<command node="/document/window/menus/select_edges" command="activate" arguments=""/>
<command node="/document/selection_tool" command="pick_replace" arguments="<arguments><viewport>/document/window/viewport</viewport><mouse>0.61399999999999999 0.42666666666666669</mouse><selection node="PolyCube 2 Instance">3897931172 3908562848 3 1 5 2 0 11 1</selection></arguments>"/>
<command node="/document/window/menus/mesh_modifier_SubdivideEdges" command="activate" arguments=""/>
<command node="/ui" command="tutorial_message" arguments="So I have one edge selected, I want to split it and connect the resulting vert to one of the far corners however,  when I select again, it still selects edges. If I switch to vert mode to select verts, it looses the selection."/>
<command node="/document/selection_tool" command="start_paint_select" arguments="<arguments><viewport>/document/window/viewport</viewport><mouse>0.39199999999999996 0.29066666666666668</mouse><selection node="PolyCube 2 Instance">0 0 3 1 5 2 0 11 4</selection></arguments>"/>
<command node="/document/selection_tool" command="paint_motion" arguments="<arguments><viewport>/document/window/viewport</viewport><mouse>0.38400000000000001 0.29066666666666668</mouse><timestamp>0.1141319967573509</timestamp></arguments>"/>
<command node="/document/selection_tool" command="end_paint_select" arguments="<arguments><viewport>/document/window/viewport</viewport><mouse>0.38400000000000001 0.29066666666666668</mouse></arguments>"/>
<command node="/document/selection_tool" command="start_paint_deselect" arguments="<arguments><viewport>/document/window/viewport</viewport><mouse>0.41199999999999998 0.28266666666666668</mouse><selection node="PolyCube 2 Instance">0 0 3 1 5 2 0 11 4</selection></arguments>"/>
<command node="/document/selection_tool" command="paint_motion" arguments="<arguments><viewport>/document/window/viewport</viewport><mouse>0.40199999999999997 0.28266666666666668</mouse><timestamp>0.05818293034099042</timestamp></arguments>"/>
<command node="/document/selection_tool" command="end_paint_deselect" arguments="<arguments><viewport>/document/window/viewport</viewport><mouse>0.40199999999999997 0.28266666666666668</mouse></arguments>"/>
<command node="/document/window/toolbar/main/select_points" command="value" arguments="true"/>
<command node="/document/selection_tool" command="start_paint_select" arguments="<arguments><viewport>/document/window/viewport</viewport><mouse>0.48599999999999999 0.22666666666666668</mouse><selection node="PolyCube 2 Instance">0 0 3 1 5 2 0 5 0</selection></arguments>"/>
<command node="/document/selection_tool" command="paint_motion" arguments="<arguments><viewport>/document/window/viewport</viewport><mouse>0.48799999999999999 0.23199999999999998</mouse><timestamp>0.1623500471469015</timestamp></arguments>"/>
<command node="/document/selection_tool" command="paint_motion" arguments="<arguments><viewport>/document/window/viewport</viewport><mouse>0.48799999999999999 0.22933333333333333</mouse><timestamp>0.2974470470799133</timestamp></arguments>"/>
<command node="/document/selection_tool" command="end_paint_select" arguments="<arguments><viewport>/document/window/viewport</viewport><mouse>0.48799999999999999 0.22933333333333333</mouse></arguments>"/>
<command node="/document/selection_tool" command="start_paint_select" arguments="<arguments><viewport>/document/window/viewport</viewport><mouse>0.624 0.40266666666666667</mouse><selection node="PolyCube 2 Instance">0 0 3 1 5 2 0 5 8</selection></arguments>"/>
<command node="/document/selection_tool" command="paint_motion" arguments="<arguments><viewport>/document/window/viewport</viewport><mouse>0.62600000000000011 0.41333333333333333</mouse><timestamp>0.02632002998143435</timestamp></arguments>"/>
<command node="/document/selection_tool" command="paint_motion" arguments="<arguments><viewport>/document/window/viewport</viewport><mouse>0.62600000000000011 0.41599999999999998</mouse><timestamp>0.0492740300251171</timestamp></arguments>"/>
<command node="/document/selection_tool" command="paint_motion" arguments="<arguments><viewport>/document/window/viewport</viewport><mouse>0.62600000000000011 0.41333333333333333</mouse><timestamp>0.1542350300587714</timestamp></arguments>"/>
<command node="/document/selection_tool" command="paint_motion" arguments="<arguments><viewport>/document/window/viewport</viewport><mouse>0.62600000000000011 0.41066666666666668</mouse><timestamp>0.1692260300042108</timestamp></arguments>"/>
<command node="/document/selection_tool" command="paint_motion" arguments="<arguments><viewport>/document/window/viewport</viewport><mouse>0.62600000000000011 0.40799999999999997</mouse><timestamp>0.2013060300378129</timestamp></arguments>"/>
<command node="/document/selection_tool" command="paint_motion" arguments="<arguments><viewport>/document/window/viewport</viewport><mouse>0.62600000000000011 0.41066666666666668</mouse><timestamp>0.3853460300015286</timestamp></arguments>"/>
<command node="/document/selection_tool" command="end_paint_select" arguments="<arguments><viewport>/document/window/viewport</viewport><mouse>0.62600000000000011 0.41066666666666668</mouse></arguments>"/>
<command node="/document/window/menus/mesh_modifier_ConnectVertices" command="activate" arguments=""/>
<command node="/ui" command="tutorial_message" arguments="I have to manually reselect the vert."/>