mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-07-25 00:34:26 +08:00
parent
f5996fe42f
commit
137726a237
@ -798,6 +798,8 @@ namespace client
|
||||
opt_key_str.resize(opt_key_str.size() - 1);
|
||||
opt = ctx->resolve_symbol(opt_key_str);
|
||||
}
|
||||
if (opt == nullptr)
|
||||
ctx->throw_exception("Variable does not exist", opt_key);
|
||||
if (! opt->is_vector())
|
||||
ctx->throw_exception("Trying to index a scalar variable", opt_key);
|
||||
const ConfigOptionVectorBase *vec = static_cast<const ConfigOptionVectorBase*>(opt);
|
||||
|
Loading…
x
Reference in New Issue
Block a user