Open driven opened 5 years ago
What are the steps to reproduce this? Just this snippet doesn't seem to do much...
Can you share some models to go along with this?
it's part of a fairly complex workflow, that I don't really want to share...
on a mac if you: open two new models and drag one of the supplied images to each...
test the variations on the call in one of the open models...
switch to the other model, define 'model'
model = Sketchup.active_model
ents = model.entities
defs = model.definitions
sel = model.selection
view = model.active_view
as you may if running other snippets then re-run [arrow up, return] a previous cmd...
switch back and forth [like you do] and at some point the code seems to break...
if you check the other model it's full of all the 'failed' imports...
RC appears to be getting references muddled, which even with really crap snippets never happened before v19.2
you should always get 'select image/s' message as you have swapped context, but 'on occasion' the 'reload_images' happens in the background model...
my concern is, if it's happening in the RC wight it happen from an extension...
john
Are you saying this is a regression with 19.2?
Can you capture how to repro in a video? I'm still a little bit unclear on that to do...
not a regression as far as I know...
it is a new bug in 19.2 that I have never seen or heard of since I started using Ruby Console v5/6...
for the type of things I was doing I have always just pasted in snippets and redefining them on the fly if need...
sometimes, things get messed up, but never has it affected another open model...
the Ruby Console has always operated on the foremost model window...
something seems to have changed...
I've moved past that point in what I'm doing, but if I need to revisit , I'll see if I can make a better repo and gif...
Describe: Ruby Console is INTERMITTENTLY calling
:active_model
methods on non-active background model... sometimes BugSplating like this Crash Report #12411 ... Describe what the expected result is. for the call to work on the foreground active model or error if it's not the referenced active model [like it always has]image_test.zip
john